Data Types

WinRing0 uses Windows (Win32/Win64) Data Types.

Reference : Windows Data Types (MSDN, en)

Important Macros

#define TRUE  1
#define FALSE 0

Data Types

Data Type OS C/C++ C# .NET Framework
BOOL x86/x64 int int System.Int32
BYTE unsigned char byte System.Byte
WORD unsigned short ushort System.UInt16
DWORD unsigned int uint System.UInt32
PBYTE unsigned char* ref byte  
PWORD unsigned short* ref ushort  
PDWORD unsigned int* ref uint  
VOID void void System.Void
DWORD_PTR x86 unsigned long   System.UIntPtr
x64 unsigned __int64