Look at XS_Client_GetCarriedMoney, specifically:
My totally non-exhaustive search didn't find any 64-bit integers getting returned, so I'm not sure what would need to be different. I did see a few unsigned longs being returned though which could be bad for 64-bit Linux compiles if it doesn't just magically handle it.