Windows(C++)与 C#数据类型对照表
Windows 数据类型 .NET 数据类型
BOOL, BOOLEAN Boolean or Int32
BSTR String
BYTE Byte
CHAR Char
DOUBLE Double
DWORD
Int32 or UInt32
FLOAT Single
HANDLE (and all other handle
types, such as HFONT and HMENU)
IntPtr, UintPtr or HandleRef
HRESULT
Int32 or UInt32
INT Int32
LANGID
Int16 or UInt16
LCID
Int32 or UInt32
LONG Int32
LPARAM
IntPtr, UintPtr or Object
LPCSTR String
LPCTSTR String
LPCWSTR String
LPSTR
String or StringBuilder*