WinRing0 は Windows (Win32/Win64) で一般的に使用されている変数の型を使用しています。 C/C++ プログラマ以外にはなじみが薄いと思われるので、C# と .NET Framework との対応をまとめました。
Windows Data Types (MSDN, en)
#define TRUE 1
#define FALSE 0
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 |