对封送处理内建支持的通用.NET数据类型

.Net精简框架类型
大小(字节)
C#别名
Visual Basic别名
Win32传值类型
Win32传引用类型
是否可以作为返回值?
Boolean
1
bool
Boolean
BYTE
BYTE *
Byte
1
byte
Byte
BYTE
BYTE *
Sbyte
1
sbyte
N/A
CHAR
CHAR *
Char
2
char
Char
WCHAR
WCHAR *
Int16
2
short
Short
SHORT
SHORT *
Uint16
2
ushort
N/A
UINT16
UINT16 *
Int32
4
int
Integer
INT32
INT32 *
Uint32
4
uint
N/A
UINT32
UINT32 *
IntPtr
4
N/A
N/A
HANDLE
HANDLE *
Single
4
float
Single
不支持
FLOAT *
Int64
8
long
Long
不支持
INT64 *
Uint64
8
ulong
N/A
不支持
UINT64 *
Double
8
double
Double
不支持
DOUBLE *
String
Varies
string
String
WCHAR *
不支持
Decimal
12
decimal
Decimal
不支持
不支持




















 
.Net精简框架中对数组的P/Invoke支持:

.NET精简框架类型
大小(字节)
C#别名
Visual Basic别名
 Win32传值类型
Win32传引用类型
Byte []
Varies
byte []
Byte ()
BYTE *
不支持
Char []
Varies
char []
Char ()
WCHAR *
不支持
Sbyte []
Varies
sbyte []
N/A
CHAR *
不支持
Int16 []
Varies
short []
Short ()
INT16 *
不支持
Uint16 []
Varies
ushort []
N/A
UINT16 *
不支持
Int32 []
Varies
int []
Integer ()
INT32 *
不支持
Uint32 []
Varies
uint []
N/A
UINT32 *
不支持
String
Varies
string
String
WCHAR *
不支持
String
Varies
string []
String ()
不支持
不支持
 
posted on 2010-03-26 12:55  nuelaleo  阅读(1661)  评论(1编辑  收藏  举报