Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than quickusb, prefix the name with the module name and a period.
QuickUsbReadData (quickusb)
.
C# Signature:
[DllImport("quickusb.dll", CharSet = CharSet.Ansi)]
static extern int QuickUsbReadData(IntPtr Handle, byte[] outData, out int length);
Notes:
The functions in the QuickUsb library are really weird, or maybe I'm just not understanding something. But I don't understand how outData isn't out. Unless classes are refrence types and they are. I just don't understand, but this code works anyways...
Tips & Tricks:
Please add some!
Sample Code:
//data is a instianciated byte array of 512 length
public bool Read(out byte[] data, int length)
{
//Placeholder array
byte[] readData = new byte[length];
int len = readData.Length; //Should be 512
int result = QuickUsbReadData(handle, readData, out len);
if (result == 0) //0 Means error
{
return false;
}
data = readData;
return true;
}
Bulk USB write to device
3/16/2007 8:09:50 AM - 192.138.1.1-194.176.105.41
Bulk USB write to device
3/16/2007 8:09:50 AM - 192.138.1.1-194.176.105.41
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).