On Tue, Aug 17, 2010 at 05:51:55PM +0200, Marcus Meissner wrote:
The Wine code is correct as-is, but perhaps the Windows win64 code generates only handles with 32bit.
That it very likely. There are windows #defines/inline functions that convert HANDLE <=> long. Remember there are some functions that return handles as long (not void *)
Also, when the windows kernel generates a HANDLE it is unlikely to know whether the app is 32bit or 64bit - so will only generate 32bit values.
I also remember reading somewhere that the kernel handle table is limited to 2^24 entries - even in 64bit mode.
David