With functions that take HANDLEs as arguments, what should that argument be listed as in the spec file? I thought HANDLEs were void *'s, so ptr would seem right. I found a function (DebugBreakProcess in kernel32.spec) that takes a HANDLE and has that listed as long in the spec.
So which should it be - ptr or long?
-Steve
steve.lustbader@philips.com writes:
With functions that take HANDLEs as arguments, what should that argument be listed as in the spec file? I thought HANDLEs were void *'s, so ptr would seem right. I found a function (DebugBreakProcess in kernel32.spec) that takes a HANDLE and has that listed as long in the spec.
So which should it be - ptr or long?
Handles should be long, mostly for historical reasons. But long and ptr are treated identically so it doesn't really matter if you get it wrong, except that winapi_check will not be happy.