您的位置:首页 > 编程语言 > C#

C#调用DLL文件时参数对应表

2010-02-11 11:24 399 查看
C#调用DLL文件时参数对应表



C#调用DLL文件时参数对应表

Wtypes.h 中的非托管类型非托管 C 语言类型托管类名说明
HANDLEvoid*System.IntPtr32 位
BYTEunsigned charSystem.Byte8 位
SHORTshortSystem.Int1616 位
WORDunsigned shortSystem.UInt1616 位
INTintSystem.Int3232 位
UINTunsigned intSystem.UInt3232 位
LONGlongSystem.Int3232 位
BOOLlongSystem.Int3232 位
DWORDunsigned longSystem.UInt3232 位
ULONGunsigned longSystem.UInt3232 位
CHARcharSystem.Char用 ANSI 修饰。
LPSTRchar*System.String 或 System.StringBuilder用 ANSI 修饰。
LPCSTRConst char*System.String 或 System.StringBuilder用 ANSI 修饰。
LPWSTRwchar_t*System.String 或 System.StringBuilder用 Unicode 修饰。
LPCWSTRConst wchar_t*System.String 或 System.StringBuilder用 Unicode 修饰。
FLOATFloatSystem.Single32 位
DOUBLEDoubleSystem.Double64 位
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: