IWDFDeviceInitialize::GetPnpCapability method

[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]

The GetPnpCapability method determines the state of the specified Plug and Play (PnP) capability.

Syntax


WDF_TRI_STATE GetPnpCapability(
  [in] WDF_PNP_CAPABILITY Capability
);

Parameters

Capability [in]

A WDF_PNP_CAPABILITY-typed value that identifies the PnP capability to retrieve status about.

Return value

GetPnpCapability returns one of the following WDF_TRI_STATE-typed values that identifies the state of the PnP capability that is specified in the Capability parameter:

Return codeDescription
WdfUseDefault (0)

The capability is set to the default state.

WdfFalse (1)

The capability is not set.

WdfTrue (2)

The capability is set.

 

Requirements

Target platform

Desktop

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::SetPnpCapability
WDF_PNP_CAPABILITY

 

 

Send comments about this topic to Microsoft

Show: