代码改变世界

Win32 API数据类型与C#数据类型对应表

2010-12-10 14:36  lppcoding  阅读(306)  评论(0编辑  收藏  举报

网上找的,记下来留作以后查阅..

 

bool=system.bool 
boolean=system.bool 
byte=system.byte 
char=system.char 
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.uint 
uint32=system.uint 
uint64=system.uint64 
ulong=system.uint32 
ulong32=system.uint32 
ulong64=system.uint64 
ulonglong=system.uint64 
ushort=system.uint16 
word=system.uint16 
wparam=system. IntPtr