@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Writes a byte array to the USB port (512 bytes). !!!!C# Signature: [DllImport("quickusb.dll", CharSet = CharSet.Ansi)] static extern int QuickUsbWriteData(IntPtr Handle, byte[] outData, int length); !!!!Notes: Maximum write buffer is 16MB !!!!Tips & Tricks: Please add some! !!!!Sample Code: /// <summary> /// Write a block to QuckUSB module /// </summary> /// <param name="data">byte array to write </param> public bool Write(byte[] data) { if (IsOpen) { int result = QuickUsbWriteData(handle, data, data.Length); if (result != 0) return true; else if (result == 0) { LastError = "QUSB returned 0"; return false; } else { LastError = "Unknown error inside WriteData"; return false; } } else if (!IsOpen) { //IsOpen = false; Close(); LastError = "USB connection not open, please open"; return false; } else { //IsOpen = false; Close(); LastError = "unknown write error"; return false; } }
Edit quickusb.QuickUsb...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.