日期:2014-05-17  浏览次数:20943 次

哪个大神告诉我这是表达的什么意思
[DllImport("USBIOX.dll")]
public static extern IntPtr USBIO_OpenDevice(uint iIndex);   
[DllImport("USBIOX.dll")]
public static extern IntPtr USBIO_CloseDevice(uint iIndex); 
[DllImport("USBIOX.dll")]
public static extern bool USBIO_SetStream(uint iIndex, uint imode); 
[DllImport("USBIOX.dll")]
public static extern bool USBIO_WriteI2C(uint iIndex, byte idevice, byte iaddr, byte ibyte);
[DllImport("USBIOX.dll")]
public static extern bool USBIO_ReadI2C(uint iIndex, byte idevice, byte iaddr, byte[] ibyte);
[DllImport("USBIOX.dll")]
public static extern bool USBIO_StreamI2C(uint iIndex, uint writelength, byte[] writebuffer, uint readlength, byte[] readbuffer);

这些代码有什么用,我看不懂,表达了什么意思

------解决方案--------------------
引用了非托管代码的写的dll(东塔链接库),用extern定义了一些外部方法,表示方法体在外部(dll内)
------解决方案--------------------
system32下有一个USBIOX.dll 

USBIOX.dll里面有一个USBIO_OpenDevice方法 参数是uint


就是调用方法而已.
------解决方案--------------------
那你怎么知道USBIOX.dll中有这些方法呢?该不是是查资料查到的吧
------解决方案--------------------
调用DLL里面的函数,通俗吧