Desktop Functions:

   Smart Device Functions:

Show Recent Changes
Subscribe (RSS)
Misc. Pages
Helpful Tools
Suggested Reading
Website TODO List
Download Visual Studio Add-In

QuickUSB (quickusb)
Bulk USB write to device

C# Signature:

[DllImport("quickusb.dll", CharSet = CharSet.Ansi)]
static extern int QuickUsbWriteData(IntPtr Handle, byte[] outData, int length);


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;
            LastError = "Unknown error inside WriteData";
            return false;
        else if (!IsOpen)
        //IsOpen = false;
        LastError = "USB connection not open, please open";
        return false;
        //IsOpen = false;
        LastError = "unknown write error";
        return false;


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).

Access directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version