I have an Int64 value, but I only need the lower 32 bits. Thus I want a quick way to get the Int32 value from the lower 32 bits of the Int64 value.
Thanks
You could let the compiler handle the endian-ness, and hide all the bit shifting, pointer manipulation etc.
DWORD CUtility::ConvertUint64toUint32(unsigned __int64 in64){ ULARGE_INTEGER uli; uli.QuadPart = in64; return uli.LowPart; }