unmanaged types in Wtypes.h |
unmanaged C language Types |
Managed class name |
Describe |
Handle |
void* |
[T:System.IntPtr] |
32-bit on a 32-bit Windows operating system and 64 bits on 64-bit Windows operating systems. |
BYTE |
unsigned char |
[T:System.Byte] |
8 Guests |
Short |
Short |
[T:System.Int16] |
16 Guests |
Word |
unsigned short |
[T:System.UInt16] |
16 Guests |
Int |
Int |
[T:System.Int32] |
32 Guests |
UINT |
unsigned int |
[T:System.UInt32] |
32 Guests |
LONG |
Long |
[T:System.Int32] |
32 Guests |
BOOL |
Long |
System.Int32 |
32 Guests |
DWORD |
unsigned long |
[T:System.UInt32] |
32 Guests |
ULONG |
unsigned long |
[T:System.UInt32] |
32 Guests |
CHAR |
Char |
[T:System.Char] |
Use ANSI adornments. |
WCHAR |
wchar_t |
[T:System.Char] |
Use Unicode adornments. |
LPSTR |
char* |
System:: String or System.Text:: StringBuilder |
Use ANSI adornments. |
LPCSTR |
Const char* |
System:: String or System.Text:: StringBuilder |
Use ANSI adornments. |
LPWStr |
wchar_t* |
System:: String or System.Text:: StringBuilder |
Use Unicode adornments. |
Lpcwstr |
Const wchar_t* |
System:: String or System.Text:: StringBuilder |
Use Unicode adornments. |
FLOAT |
Float |
[T:System.Single] |
32 Guests |
DOUBLE |
Double |
[T:System.Double] |
64 guests |
Conversion of unmanaged types to managed type tables