Change the value Type from long to long long, because Windows has 32 bit longs ans 64 bit long longs -.-