CM_Delete_Class_Key function
The CM_Delete_Class_Key function removes the specified installed device class from the system.
Syntax
CMAPI CONFIGRET WINAPI CM_Delete_Class_Key( _In_ LPGUID ClassGuid, _In_ ULONG ulFlags );
Parameters
- ClassGuid [in]
-
Pointer to the GUID of the device class to remove.
- ulFlags [in]
-
Delete class key flags:
- CM_DELETE_CLASS_ONLY
-
Delete the class only if it does not contain any subkeys.
- CM_DELETE_CLASS_SUBKEYS
-
Delete the class and all of its subkeys.
- CM_DELETE_CLASS_INTERFACE (available only in Windows Vista and later)
-
Indicates that ClassGuid specifies a device interface class and not a device setup class.
Return value
If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h.
Remarks
Requirements
|
Target platform | |
|---|---|
|
Version |
Available in Microsoft Windows 2000 and later versions of Windows. |
|
Header |
|
|
Library |
|
|
DLL |
|
See also