The following table lists the data types used in Win32 APIs (listed in Wtypes. h) and C style functions. Many non-writable libraries contain functions that pass these data types as parameters and return values.
The third column lists the corresponding. NET Framework built-in value types or classes used in managed code. In some cases, you can replace the types listed in this table with the same size.
Description of unmanaged C-language managed classes in Wtypes. h
Handle void * System. intPtr 32-bit byte unsigned char System. byte 8-bit short System. int16 16-bit word unsigned short System. UInt16 16-bit int System. int32 32-bit uint unsigned int System. UInt32 32-bit long System. int32 32-bit bool long System. int32 32-bit dword unsigned long System. UInt32 32-bit ulong unsigned long System. UInt32 32-bit char System. char is modified with ANSI. Lpstr char * System. String or System. StringBuilder is modified with ANSI. Lpcstr const char * System. String or System. StringBuilder is modified with ANSI. Lpwstr wchar_t * System. String or System. StringBuilder is modified with Unicode. Lpcwstr const wchar_t * System. String or System. StringBuilder are modified with Unicode. Float System. Single 32-bit double System. Double 64-bit