HANDLE WINAPI CH341OpenDevice( // 打开CH341设备,返回句柄,出错则无效
ULONG iIndex ); // 指定CH341设备序号,0对应第一个设备
"HANDLE WINAPI" 如何使用啊 ,我写老是报错啊.
public int InitialUSB()
{
iIndex = 0;
IF( CH341OpenDevice(iIndex)==-1)
return -1;
return 0;
}
ULONG iIndex ); // 指定CH341设备序号,0对应第一个设备
"HANDLE WINAPI" 如何使用啊 ,我写老是报错啊.
public int InitialUSB()
{
iIndex = 0;
IF( CH341OpenDevice(iIndex)==-1)
return -1;
return 0;
}
private static extern IntPtr CH341OpenDevice(uint iIndex); public int InitialUSB()
{
if(CH341OpenDevice(0)==IntPtr.Zero)
{
return -1;
}
return 0;
}这样看看.