Export (0) Print
Expand All
Expand Minimize

CM_Delete_Class_Key function

This function is reserved for system use. Do not use this function in your class installers, co-installers, or device installation applications.

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

This function is reserved for system use. Do not use this function in your class installers, co-installers, or device installation applications.

Requirements

Version

Available in Microsoft Windows 2000 and later versions of Windows.

Header

Cfgmgr32.h (include Cfgmgr32.h)

Library

Cfgmgr32.lib

See also

CM_Open_Class_Key

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft