This function creates and initializes a host controller interface driver object.

LPVOID HcdMdd_CreateHcdObject(
  LPVOID lpvOhcdPddObject,
  LPVOID lpvMemoryObject,
  LPCWSTR szRegKey,
  PUCHAR ioPortBase,
  DWORD dwSysIntr 


  • lpvOhcdPddObject
    [in] Pointer to the PDD-specific data for this instance.
  • lpvMemoryObject
    [in] Pointer to the memory object created by the HcdMdd_CreateMemoryObject function.
  • szRegKey
    [in] Registry key where the host controller interface configuration settings are stored.
  • ioPortBase
    [in] Pointer to the host controller interface controller registers.
  • dwSysIntr
    [in] Logical value for a host controller interface interrupt, SYSINTR_xx.

Return Values

A pointer to a host controller interface driver object indicates success. NULL indicates failure.


The PDD calls this function during initialization to initialize a host controller interface driver object. As part of this processing, the USB driver, Usbd.dll, is loaded, and the host controller interface interrupt is hooked into the system. Next, the host controller interface hardware is placed into OPERATIONAL state, and list processing begins: device attach events are serviced, transfers initiated, and so on.

The USB subsystem supports multiple host controllers. The PDD should create a host controller interface driver object for each physical host controller in the system.


OS Versions: Windows CE 1.0 and later.
Header: Ohcdddsi.h or Uhcdddsi.h.

See Also

HcdMdd_CreateMemoryObject | HcdMdd_DestroyHcdObject | USB Drivers

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.