spec files and handles

Alexandre Julliard julliard at winehq.com
Thu Oct 3 12:19:36 CDT 2002

steve.lustbader at 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.

Alexandre Julliard
julliard at winehq.com

More information about the wine-devel mailing list