Basically, the declarations change from
to
Any Long types in the declaration may, or may not, change to LongPtr type. Whether they change is determined by what they represent; Function arguments or return values that represent addresses in memory change. This is because a 64-bit Operating System has a memory space that is too large to hold in a Long data type. Arguments or return values that represent data will still be declared Long even in 64-bit.
A good example is the SendMessage API
32 Bit
64 bit
The hWnd parameter and Return Value change as they are memory addresses whereas the remaining Longs are data...
Bookmarks