WinNT.h
typedef | C/C++ | .NET | C# | Remarks |
---|---|---|---|---|
PVOID | void * | System.IntPtr | IntPtr | |
PVOID64 | void * POINTER_64 | System.IntPtr | IntPtr | |
HANDLE | void * | System.IntPtr | IntPtr | |
BOOLEAN | BYTE | System.Byte | byte | |
CHAR | char | System.SByte | sbyte | |
WCHAR | wchar_t | System.Char | char | |
LPCSTR | __nullterminated CONST CHAR * | |||
LPCWSTR | __nullterminated CONST WCHAR * | |||
LPCTSTR | LPCWSTR | |||
LONG | long | System.Int32 | int | Windows Data Types |
HRESULT | LONG | System.Int32 | int | DllImportAttribute.PreserveSig フィールド |
#define | C/C++ | Remarks |
---|---|---|
POINTER_64 | __ptr64 | |
ANSI_NULL | ((CHAR)0) | |
UNICODE_NULL | ((WCHAR)0) | |
UNICODE_STRING_MAX_BYTES | ((WORD)65534) | |
UNICODE_STRING_MAX_CHARS | (32767) | |
DECLARE_HANDLE(name) | struct name##__ { int unused; }; typedef struct name##__ *name; | Token-Pasting Operator (##) |
DECLSPEC_IMPORT | __declspec(dllimport) | |
EXTERN_C | extern "C" | Using extern to Specify Linkage |
STDAPICALLTYPE | __stdcall | |
STDAPI | EXTERN_C HRESULT STDAPICALLTYPE |
minwindef.h
typedef | C/C++ | .NET | C# | Remarks |
---|---|---|---|---|
UINT | unsigned int |
#define | C/C++ | Remarks |
---|---|---|
CALLBACK | __stdcall | |
WINAPI | __stdcall | |
WINAPIV | __cdecl | |
APIENTRY | WINAPI | |
APIPRIVATE | __stdcall | |
PASCAL | __stdcall |
WinDef.h
typedef | C/C++ | .NET | C# | Remarks |
---|---|---|---|---|
ULONG | unsigned long | System.UInt32 | uint | |
PULONG | ULONG * | System.IntPtr | uint | |
USHORT | unsigned short | System.UInt16 | ushort | |
PUSHORT | USHORT * | System.IntPtr | short | |
UCHAR | unsigned char | System.SByte | sbyte | |
PUCHAR | UCHAR * | System.String System.Text.StringBuilder | string StringBuilder | |
PSZ | _Null_terminated_ char * | System.String System.Text.StringBuilder | string StringBuilder | |
BYTE | unsigned char | System.Byte | byte | |
WORD | unsigned short | System.UInt16 | ushort | |
DWORD | unsigned long | System.UInt32 | uint | |
LPVOID | void far * | System.IntPtr | IntPtr | |
LPCVOID | CONST void far * | System.IntPtr | IntPtr | |
INT | int | System.Int32 | int | |
UINT | unsigned int | System.UInt32 | uint | |
BOOL | int | System.Int32 | int | |
PBOOL | BOOL near * | System.Boolean | bool | |
LPBOOL | BOOL far * | System.Boolean | bool | |
HMODULE | HINSTANCE | System.IntPtr | IntPtr | HMODULEs can be used in place of HINSTANCEs |
HINSTANCE | DECLARE_HANDLE(HINSTANCE) | System.IntPtr | IntPtr | |
HWND | DECLARE_HANDLE(HWND) | System.IntPtr | IntPtr | |
HMONITOR | DECLARE_HANDLE(HMONITOR) |
#define | C/C++ | Remarks |
---|---|---|
MAX_PATH | 260 | |
CONST | const | |
NULL | 0 | |
FALSE | 0 | |
TRUE | 1 | |
IN | ||
OUT | ||
OPTIONAL | ||
far | ||
FAR | far | |
near | ||
NEAR | near | |
DECLSPEC_IMPORT | __declspec(dllimport) | |
FARPROC | (FAR WINAPI *)() |
WinBase.h
typedef | C/C++ | .NET | C# | Remarks |
---|
#define | C/C++ | Remarks |
---|---|---|
WINBASEAPI |
sal.h
typedef | C/C++ | .NET | C# | Remarks |
---|
BaseTypes.h
typedef | C/C++ | .NET | C# | Remarks |
---|
#define | C/C++ | Remarks |
---|---|---|
EXTERN_C | extern "C" | |
STDAPICALLTYPE | __stdcall |
windows.h
vadefs.h
typedef | C/C++ | .NET | C# | Remarks |
---|---|---|---|---|
va_list | char * |
#define | C/C++ | Remarks |
---|
BaseTsd.h
typedef | C/C++ | .NET | C# | Remarks |
---|---|---|---|---|
ULONG_PTR | _W64 unsigned long | System.UInt32 | uint | |
DWORD_PTR | ULONG_PTR | System.UInt32 | uint |
#define | C/C++ | Remarks |
---|
sourceannotations.h
typedef | C/C++ | .NET | C# | Remarks |
---|
#define | C/C++ | Remarks |
---|---|---|
_W64 | __w64 |