CMAPI CONFIGRET WINAPI CM_Add_ID( _In_ DEVINST dnDevInst, _In_ PWSTR pszID, _In_ ULONG ulFlags );
- dnDevInst [in]
Caller-supplied device instance handle that is bound to the local machine.
- pszID [in]
Caller-supplied pointer to a NULL-terminated device ID string.
- ulFlags [in]
Caller-supplied flag constant that specifies the list onto which the supplied device ID should be appended. The following flag constants are valid.
Flag Constant Definition
The specified device ID should be appended to the specific device instance's compatible ID list.
The specified device ID should be appended to the specific device instance's hardware ID list.
If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h.
Each appended device ID is considered less compatible than IDs already existing in the specified list. For information about device IDs, hardware IDs, and compatible IDs, see Device Identification Strings.
Callers of this function must have SeLoadDriverPrivilege. (Privileges are described in the Microsoft Windows SDK documentation.)
For information about using device instance handles that are bound to the local machine, see CM_Get_Child.
|Available in Microsoft Windows 2000 and later versions of Windows.|
Build date: 11/16/2013