30.11.2012 Views

USBIO Driver for Windows CE - Thesycon Systemsoftware ...

USBIO Driver for Windows CE - Thesycon Systemsoftware ...

USBIO Driver for Windows CE - Thesycon Systemsoftware ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3 Programming Interface<br />

CUsbIo::Open<br />

Open an USB device.<br />

Definition<br />

DWORD<br />

Open(<br />

int DeviceNumber,<br />

HDEVINFO DeviceList,<br />

const GUID* InterfaceGuid,<br />

bool CheckApiVersion = true<br />

);<br />

Parameters<br />

DeviceNumber<br />

Specifies the index number of the USB Device. The index is zero-based. Note that the<br />

association between this number and the USB device can change with each call to<br />

CUsbIo::CreateDeviceList.<br />

DeviceList<br />

A handle to the internal device list which was returned by the function<br />

CUsbIo::CreateDeviceList.<br />

InterfaceGuid<br />

Under <strong>Windows</strong> <strong>CE</strong> with parameter is unused.<br />

CheckApiVersion = true<br />

If this parameter is true the open function fails with the error code<br />

<strong>USBIO</strong>_ERR_VERSION_MISMATCH if the API version of the used driver is less than the<br />

expected or the major version of the API is different.<br />

Return Value<br />

The function returns 0 if successful, an <strong>USBIO</strong> error code otherwise.<br />

See Also<br />

CUsbIo::Close (page 30)<br />

CUsbIo::IsOpen (page 35)<br />

CUsbIo::IsCheckedBuild (page 36)<br />

CUsbIo::IsDemoVersion (page 37)<br />

CUsbIo::IsLightVersion (page 38)<br />

28 <strong>USBIO</strong> <strong>Driver</strong> <strong>for</strong> <strong>Windows</strong> <strong>CE</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!