IPNPXAssociation::Delete method (pnpxassoc.h)

[Function Discovery is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Removes an entry from the association database.

Syntax

HRESULT Delete(
  [in, optional] const WCHAR *pszSubcategory
);

Parameters

[in, optional] pszSubcategory

The subcategory of the association database in which the entry is stored. This parameter can be NULL.

Return value

Possible return values include, but are not limited to, the following.

Return code Description
S_OK
The method succeeded.
E_FAIL
The method failed.

Remarks

This method modifies the association database entry corresponding to the function instance from which the IPNPXAssociation interface was obtained.

To mark a device as unavailable for use without deleting the association database entry, call IPNPXAssociation::Unassociate.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header pnpxassoc.h

See also

IPNPXAssociation

IPNPXDeviceAssociation::Delete