IPNPXAssociation interface (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.]

Defines methods to manage the association database entries for PnP-X devices. . These methods send notifications when the corresponding PnP devnode changes. An application calls IPNPXAssociation methods when the application programmatically manages PnP-X device association, either through a custom user interface or through some other method. Usually, the Network Explorer is used to manage PnP-X device association.

Inheritance

The IPNPXAssociation interface inherits from the IUnknown interface. IPNPXAssociation also has these types of members:

Methods

The IPNPXAssociation interface has these methods.

 
IPNPXAssociation::Associate

Marks an association database entry as associated.
IPNPXAssociation::Delete

Removes an entry from the association database.
IPNPXAssociation::Unassociate

Marks an association database entry as unassociated.

Remarks

This interface is obtained by calling QueryService on a function instance returned by a Function Discovery query. The following pseudocode shows the parameters to use for the QueryService call.

QueryService( SID_PNPXAssociation, __uuidof( IPNPXAssociation ) )

The IPNPXAssociation methods modify the association database entry for the function instance upon which QueryService was called.

Not all function instances can be associated using the IPNPXAssociation methods. The function instance must have its PKEY_PNPX_GlobalIdentity key populated with the UUID supplied by the Function Discovery provider used to discover the device. For more information about property keys, see PnP-X Provider PKEYs.

Requirements

Requirement Value
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

IPNPXDeviceAssociation