PInvoke 平台调用
wtypes.h | C++ | Managed Extensions | Common language runtime |
---|---|---|---|
HANDLE |
void * |
void * |
IntPtr, UIntPtr |
BYTE |
unsigned char |
unsigned char |
Byte |
SHORT |
short |
short |
Int16 |
WORD |
unsigned short |
unsigned short |
UInt16 |
INT |
int |
int |
Int32 |
UINT |
unsigned int |
unsigned int |
UInt32 |
LONG |
long |
long |
Int32 |
BOOL |
long |
bool |
Boolean |
DWORD |
unsigned long |
unsigned long |
UInt32 |
ULONG |
unsigned long |
unsigned long |
UInt32 |
CHAR |
char |
char |
Char |
LPSTR |
char * |
String * [in], StringBuilder * [in, out] |
String [in], StringBuilder [in, out] |
LPCSTR |
const char * |
String * |
String |
LPWSTR |
wchar_t * |
String * [in], StringBuilder * [in, out] |
String [in], StringBuilder [in, out] |
LPCWSTR |
const wchar_t * |
String * |
String |
FLOAT |
float |
float |
Single |
DOUBLE |
double |
double |
Double |