Alex Henrie alexhenrie24@gmail.com writes:
There's no guarantee that 0xffffffff is an invalid handle on 64-bit.
It can't possibly be a valid module handle, though something like 0xdeadbeef may be preferable. Note also that INVALID_HANDLE_VALUE is for file handles, not for modules.