Share via


DMAdvertiseInterface (Windows CE 5.0)

Send Feedback

This function exposes AdvertiseInterface to device drivers that link directly with the Device Manager.

DWORD WINAPI DmAdvertiseInterface(  HANDLE hDevice,  const GUID *devclass,  LPCWSTR name,  BOOL fAdd);

Parameters

  • hDevice
    [in] Device handle provided to the driver in its XXX_Init (Device Manager) entry point.
  • devclass
    [in] Pointer to a device interface globally unique identifier (GUID). It cannot be NULL.
  • name
    [in] Name of the interface instance. Use this name to identify this instance in whatever way the interface requires. This name must be unique in the interface's access namespace. Therefore, "DSK2:" might be available in both the generic stream interface namespace and the block interface namespace, and will probably, but not necessarily, refer to the same actual driver.
  • fAdd
    [in] Data to specify whether the interface appeared or disappeared. Set to TRUE if the interface appeared. Set to FALSE if the interface disappeared.

Return Values

Returns ERROR_SUCCESS if the interface is successfully advertised. Otherwise, a Win32 error code.

Requirements

OS Versions: Windows CE 5.0 and later.

Header: Devload.h.

See Also

Device Interfaces | AdvertiseInterface | XXX_Init (Device Manager)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.