函数声明:
char * App_report ()
输入/输出参数
输入参数: 无
输出参数: 返回用户上行状态报告的字符指针:
前16个字节为用户下行状态报告ID:
接着8个字节为用户下行状态报告状态
后面4个字节为标志(1.成功.0.失败)
返回值: 长度大于10为有下行状态报告过来,否则没状态报告
上面是一接口文档说明。
请问这个在C#中如何调用。
char * App_report ()
输入/输出参数
输入参数: 无
输出参数: 返回用户上行状态报告的字符指针:
前16个字节为用户下行状态报告ID:
接着8个字节为用户下行状态报告状态
后面4个字节为标志(1.成功.0.失败)
返回值: 长度大于10为有下行状态报告过来,否则没状态报告
上面是一接口文档说明。
请问这个在C#中如何调用。
public static extern byte App_report ();// listBox1.Items.Add(App_report().ToString());上面是我的代码
为何返回值byte,byte的位都是1就是255.....
头都要弄大了
Wtypes.h中的非托管类型 非托管 C语言类型 托管类名 说明
HANDLE void* System.IntPtr 32 位
BYTE unsigned char System.Byte 8 位
SHORT short System.Int16 16 位
WORD unsigned short System.UInt16 16 位
INT int System.Int32 32 位
UINT unsigned int System.UInt32 32 位
LONG long System.Int32 32 位
BOOL long System.Int32 32 位
DWORD unsigned long System.UInt32 32 位
ULONG unsigned long System.UInt32 32 位
CHAR char System.Char 用 ANSI 修饰。
LPSTR char* System.String 或 System.StringBuilder 用 ANSI 修饰。
LPCSTR Const char* System.String 或System.StringBuilder 用 ANSI 修饰。
LPWSTR wchar_t* System.String 或System.StringBuilder 用 Unicode 修饰。
LPCWSTR Const wchar_t* System.String 或System.StringBuilder 用 Unicode 修饰。
FLOAT Float System.Single 32 位
DOUBLE Double System.Double 64 位