Marshalling C++ Structures into c#
<p>how we will code these structures(Written in C++) in C#</p>

<pre><code>typedef struct
{
    USHORT idVendor;
    USHORT idProduct;
    USHORT bcdDevice;
    CHAR szSerialNumber[256];
} FT_USB_UNIQID, *PFT_USB_UNIQID;

typedef struct {
    FT_USB_UNIQID usbHWID;
    eFtUsbDeviceStatus status;
    BOOL bExcludeDevice;
    BOOL bSharedManually;
    ULONG ulDeviceId;
    ULONG ulClientAddr;
    CHAR szUsbDeviceDescr[256];
    CHAR szLocationInfo[256];
    WCHAR szNickName[256];
} FT_SERVER_USB_DEVICE, *PFT_SERVER_USB_DEVICE;
</code></pre>
