Partager via


DMAdvertiseInterface (Compact 2013)

3/26/2014

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

Syntax

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

Parameters

  • 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 Value

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

Requirements

Header

devload.h

See Also

Reference

Device Manager Functions
AdvertiseInterface
XXX_Init (Device Manager)