[Relational] Windows API and. net resource type response

Source: Internet
Author: User

In VB. net or C # requires Win32 APIs for many applications. However, some primitive types of prototype data appear to be very difficult, even in. net does not have this kind of information type. I checked the information, and sorted out the corresponding information of the type as follows, hoping to be useful to everyone:

Bool = system. int32
Boolean = system. int32
Byte = system. uint16
Char = system. int16
Colorref = system. uint32
DWORD = system. uint32
Dword32 = system. uint32
Dword64 = system. uint64
Float = system. Float
Haccel = system. intptr
Handle = system. intptr
Hbitmap = system. intptr
Hbrush = system. intptr
Hconv = system. intptr
Hconvlist = system. intptr
Hcursor = system. intptr
HDC = system. intptr
Hddedata = system. intptr
Hdesk = system. intptr
Hdrop = system. intptr
Hdwp = system. intptr
Henhmetafile = system. intptr
Hfile = system. intptr
Hfont = system. intptr
Hgdiobj = system. intptr
Hglobal = system. intptr
Hhook = system. intptr
Hicon = system. intptr
Himagelist = system. intptr
Himc = system. intptr
Hinstance = system. intptr
Hkey = system. intptr
Hlocal = system. intptr
Hmenu = system. intptr
Hmetafile = system. intptr
Hmodule = system. intptr
Hmonitor = system. intptr
Hpalette = system. intptr
Hpen = system. intptr
Hrgn = system. intptr
Hrsrc = system. intptr
Hsz = system. intptr
Hwinsta = system. intptr
Hwnd = system. intptr
Int = system. int32
Int32 = system. int32
Int64 = system. int64
Long = system. int32
Long32 = system. int32
Long64 = system. int64
Longlong = system. int64
Lparam = system. intptr
Lpbool = system. int16 []
Lpbyte = system. uint16 []
Lpcolorref = system. uint32 []
Lpcstr = system. String
Lpctstr = system. String
Lpcvoid = system. uint32
Lpcwstr = system. String
Lpdword = system. uint32 []
Lphandle = system. uint32
Lpint = system. int32 []
Lplong = system. int32 []
Lpstr = system. String
Lptstr = system. String
Lpvoid = system. uint32
Lpword = system. int32 []
Lpwstr = system. String
Lresult = system. intptr
Pbool = system. int16 []
Pboolean = system. int16 []
Pbyte = system. uint16 []
Pchar = system. Char []
Pcstr = system. String
Pctstr = system. String
Pcwch = system. uint32
Pcwstr = system. uint32
Pdword = system. int32 []
Pfloat = system. Float []
Phandle = system. uint32
Phkey = system. uint32
Pint = system. int32 []
Plcid = system. uint32
Plong = system. int32 []
Pluid = system. uint32
Pshort = system. int16 []
Pstr = system. String
Ptbyte = system. Char []
Ptchar = system. Char []
Ptstr = system. String
Puchar = system. Char []
Puint = system. uint32 []
Pulong = system. uint32 []
Pushort = system. uint16 []
Pvoid = system. uint32
Pwchar = system. Char []
Pword = system. int16 []
Pwstr = system. String
Regsam = system. uint32
SC _handle = system. intptr
SC _lock = system. intptr
Short = system. int16
Size_t = system. uint32
Ssize _ = system. uint32
Tbyte = system. Char
Tchar = system. Char
Uchar = system. byte
Uint = system. uint32
Uint32 = system. uint32
Uint64 = system. uint64
Ulong = system. uint32
Ulong32 = system. uint32
Ulong64 = system. uint64
Ulonglong = system. uint64
Ushort = system. uint16
WORD = system. uint16
Wparam = system. intptr

Output: http://www.chenjiliang.com/Article/View.aspx? ArticleID = 5209 & typeid = 34

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.