DMAdvertiseInterface (Windows Embedded CE 6.0)
1/6/2010
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
- 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 Value
Returns ERROR_SUCCESS if the interface is successfully advertised. Otherwise, a Win32 error code.
Requirements
Header | devload.h |
Windows Embedded CE | Windows CE 5.0 and later |
See Also
Reference
Device Manager Functions
AdvertiseInterface
XXX_Init (Device Manager)