Windows API 與 .NET 型別對應表

Windows API 與 .NET 型別對應表

WinAPI 型別 .NET 型別   WinAPI 型別 .NET 型別   WinAPI 型別 .NET 型別
BOOL System.Int32 HRGN System.IntPtr PFLOAT System.Float[]
BOOLEAN System.Int32 HRSRC System.IntPtr PHANDLE System.UInt32
BYTE System.UInt16 HSZ System.IntPtr PHKEY System.UInt32
CHAR System.Int16 HWINSTA System.IntPtr PINT System.Int32[]
COLORREF System.UInt32 HWND System.IntPtr PLCID System.UInt32
DWORD System.UInt32 INT System.Int32 PLONG System.Int32[]
DWORD32 System.UInt32 INT32 System.Int32 PLUID System.UInt32
DWORD64 System.UInt64 INT64 System.Int64 PSHORT System.Int16[]
FLOAT System.Float LONG System.Int32 PSTR System.String
HACCEL System.IntPtr LONG32 System.Int32 PTBYTE System.Char[]
HANDLE System.IntPtr LONG64 System.Int64 PTCHAR System.Char[]
HBITMAP System.IntPtr LONGLONG System.Int64 PTSTR System.String
HBRUSH System.IntPtr LPARAM System.IntPtr PUCHAR System.Char[]
HCONV System.IntPtr LPBOOL System.Int16[] PUINT System.UInt32[]
HCONVLIST System.IntPtr LPBYTE System.UInt16[] PULONG System.UInt32[]
HCURSOR System.IntPtr LPCOLORREF System.UInt32[] PUSHORT System.UInt16[]
HDC System.IntPtr LPCSTR System.String PVOID System.UInt32
HDDEDATA System.IntPtr LPCTSTR System.String PWCHAR System.Char[]
HDESK System.IntPtr LPCVOID System.UInt32 PWORD System.Int16[]
HDROP System.IntPtr LPCWSTR System.String PWSTR System.String
HDWP System.IntPtr LPDWORD System.UInt32[] REGSAM System.UInt32
HENHMETAFILE System.IntPtr LPHANDLE System.UInt32 SC_HANDLE System.IntPtr
HFILE System.IntPtr LPINT System.Int32[] SC_LOCK System.IntPtr
HFONT System.IntPtr LPLONG System.Int32[] SHORT System.Int16
HGDIOBJ System.IntPtr LPSTR System.String SIZE_T System.UInt32
HGLOBAL System.IntPtr LPTSTR System.String SSIZE_ System.UInt32
HHOOK System.IntPtr LPVOID System.UInt32 TBYTE System.Char
HICON System.IntPtr LPWORD System.Int32[] TCHAR System.Char
HIMAGELIST System.IntPtr LPWSTR System.String UCHAR System.Byte
HIMC System.IntPtr LRESULT System.IntPtr UINT System.UInt32
HINSTANCE System.IntPtr PBOOL System.Int16[] UINT32 System.UInt32
HKEY System.IntPtr PBOOLEAN System.Int16[] UINT64 System.UInt64
HLOCAL System.IntPtr PBYTE System.UInt16[] ULONG System.UInt32
HMENU System.IntPtr PCHAR System.Char[] ULONG32 System.UInt32
HMETAFILE System.IntPtr PCSTR System.String ULONG64 System.UInt64
HMODULE System.IntPtr PCTSTR System.String ULONGLONG System.UInt64
HMONITOR System.IntPtr PCWCH System.UInt32 USHORT System.UInt16
HPALETTE System.IntPtr PCWSTR System.UInt32 WORD System.UInt16
HPEN System.IntPtr PDWORD System.Int32[] WPARAM System.IntPtr 

程式是運氣與直覺堆砌而成的奇蹟。
若不具備這兩者,不可能以這樣的工時實現這樣的規格。
修改規格是對奇蹟吐槽的褻瀆行為。
而追加修改則是相信奇蹟還會重現的魯莽行動。