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* | lptstr | string or stringbuilder | lpwstr | string or stringbuilder | lpvoid | intptr, uintptr or object | lresult | intptr | safearray | .net array type | short | int16 | tchar | char | uchar | sbyte | uint | int32 or uint32 | ulong | int32 or uint32 | variant | object | variant_bool | boolean | wchar | char | word | int16 or uint16 | wparam | intptr, uintptr or object |
|