Windows APIと.NET Frameworkの対応表
出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2022/06/16 10:05 UTC 版)
「P/Invoke」の記事における「Windows APIと.NET Frameworkの対応表」の解説
以下の表にWindows API (Win32/Win64) での型名、.NET Frameworkでの型名、C#/VBでの型名の対応を示す。 Windows APIでの型名.NET Frameworkでの型名C#での型名Visual Basicでの型名HANDLE(void*) あるいはHBITMAPなどハンドルを表す型名 System.IntPtr System.IntPtr System.IntPtr INT_PTR, LONG_PTRなど(ポインタと同サイズの整数型) System.IntPtr System.IntPtr System.IntPtr INT8/SCHAR(signed char) System.SByte sbyte SByte UINT8/UCHAR/BYTE/BOOLEAN(unsigned char) System.Byte byte Byte INT16/SHORT(short) System.Int16 short Short UINT16/USHORT/WORD(unsigned short) System.UInt16 ushort UShort INT32/INT(int)LONG32/LONG(long) System.Int32 int Integer UINT32/UINT(unsigned int)ULONG32/ULONG/DWORD(unsigned long) System.UInt32 uint UInteger INT64/LONG64/LONGLONG(long long) System.Int64 long Long UINT64/ULONG64/ULONGLONG(unsigned long long) System.UInt64 ulong ULong BOOL(int) System.Boolean bool Boolean CHAR(char) System.Byte/System.SByte byte/sbyte Byte/SByte WCHAR(wchar_t) System.Char char Char LPSTR(char*)LPWSTR (wchar_t*) System.Text.StringBuilder System.Text.StringBuilder System.Text.StringBuilder LPCSTR(const char*)LPCWSTR(const wchar_t*) System.String string String FLOAT(float) System.Single float Single DOUBLE(double) System.Double double Double
※この「Windows APIと.NET Frameworkの対応表」の解説は、「P/Invoke」の解説の一部です。
「Windows APIと.NET Frameworkの対応表」を含む「P/Invoke」の記事については、「P/Invoke」の概要を参照ください。
- Windows APIと.NET Frameworkの対応表のページへのリンク