[Win32utils-devel] FFI and DWORD
phasis at gmail.com
Tue Apr 10 15:48:41 UTC 2012
2012/4/11 Daniel Berger <djberg96 at gmail.com>
> A DWORD is declared as: typedef unsigned long DWORD;
> However, the docs also say that it's a 32-bit unsigned integer. The
> range is 0 through 4294967295 decimal.
> When using FFI should I declare a DWORD as :ulong or :uint?
I think DWORD should be :ulong.
In the header file WinDef.h of Platform SDK, I can see
typedef unsigned long DWORD;
Also refer to python's wintypes.py
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the win32utils-devel