Since GetCurrentProcessId() returns a 32-bit DWORD, it would probably be best to wrap this and xor the upper and lower 16 bits.

The new mongo c driver in development uses libbson, which I'll add support for this.