日期:2014-05-17 浏览次数:20880 次
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct
{
//字符串使用
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = BTSDK_SERVICENAME_MAXLENGTH)]
public string svc_name;
}
[System.Runtime.InteropServices.StructLayout(LayoutKind.Explicit)]
public struct unionStruct
{
[FieldOffset(0)]
Uint16 svc_class;
[FieldOffset(0)]
Uint16 service_class;
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)]
public struct Anonymous
{
/// unsigned short
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public ushort svc_class;
/// unsigned short
[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
public ushort service_class;
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential, CharSet=System.Runtime.InteropServices.CharSet.Ansi)]
public struct BtSdkRemoteServiceAttrStru
{
/// unsigned short
public ushort mask;
/// Anonymous
public Anonymous Union1;
/// unsigned int
public uint dev_hdl;
/// unsigned char[]
[System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst=-1)]
public string svc_name;
/// void*