[Win32utils-devel] FFI and DWORD
djberg96 at gmail.com
Wed Apr 11 10:02:25 UTC 2012
On Tue, Apr 10, 2012 at 9:48 AM, Heesob Park <phasis at gmail.com> wrote:
> 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 http://coverage.livinglogic.de/Lib/ctypes/wintypes.py.html
Ok, thanks, that's what I've been using.
More information about the win32utils-devel