USBDev_Open

USBDev_Open

Description

Open a device by retrieving a general device handle.

Files

usbdev_api.c

Prototype

HANDLE USBDev_Open (const GUID guid_dev_if, DWORD dev_nbr, DWORD *p_err);



Arguments

guid_dev_if

Device interface class GUID.

dev_nbr

Device number.

p_err

Pointer to variable that will receive the return error code from this function:

ERROR_SUCCESS

ERROR_INVALID_PARAMETER

ERROR_NOT_ENOUGH_MEMORY

ERROR_BAD_DEVICE

Returned Value

Handle to device, if NO error(s).

INVALID_HANDLE_VALUE, otherwise.

Callers

Application.

Notes / Warnings

None.