IWDFDeviceInitialize::SetPnpCapability method

The SetPnpCapability method sets the specified Plug and Play (PnP) capability of a device to the specified state.

Syntax


void SetPnpCapability(
  [in]  WDF_PNP_CAPABILITY Capability,
  [in]  WDF_TRI_STATE Value
);

Parameters

Capability [in]

A WDF_PNP_CAPABILITY-typed value that identifies the PnP capability to set.

Value [in]

A WDF_TRI_STATE-typed value that identifies how to set the PnP capability that is specified by Capability. The following table shows the possible values.

ValueMeaning

WdfUseDefault (0)

Set the capability to the default state.

WdfFalse (1)

Do not set the capability.

WdfTrue (2)

Set the capability.

 

Return value

None

Requirements

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.5

Header

Wudfddi.h (include Wudfddi.h)

DLL

WUDFx.dll

See also

IWDFDeviceInitialize
IWDFDeviceInitialize::GetPnpCapability
WDF_PNP_CAPABILITY

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft