Share via


LPREGISTER_CLIENT_SETTINGS (Compact 2013)

3/26/2014

This function registers settings for loading a USB client driver.

Syntax

typedef BOOL (* LPREGISTER_CLIENT_SETTINGS)(
  LPCWSTR szDriverLibFile, 
  LPCWSTR szUniqueDriverId, 
  LPCWSTR szReserved,
  LPCUSB_DRIVER_SETTINGS lpDriverSettings
);

Parameters

  • szDriverLibFile
    [in] Client driver DLL name.
  • szUniqueDriverId
    [in] Unique client driver identifier string.
  • szReserved
    [in] Reserved, set to zero (0).
  • lpDriverSettings
    [in] Pointer to a USB_DRIVER_SETTINGS structure that specifies how the driver is to be loaded.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

Client drivers call this function during their installation functions. It sets up appropriate registry keys based on lpDriverSettings so that the driver is loaded whenever the device is attached.

Pass USB_NO_INFO to LPREGISTER_CLIENT_SETTINGS to load the client driver by default for any of the parameters in the USB_DRIVER_SETTINGS structure.

Requirements

Header

usbdi.h

See Also

Reference

USB Driver Functions
LPUN_REGISTER_CLIENT_SETTINGS
USB_DRIVER_SETTINGS