IWPCProviderSupport::GetCurrent method (wpcapi.h)

Retrieves the GUID of the current provider.

Syntax

HRESULT GetCurrent(
  [out] GUID *pguidProvider
);

Parameters

[out] pguidProvider

The GUID of the current provider.

Return value

If the method succeeds, the method returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.

Return code Description
E_INVALIDARG
The pguidProvider parameter is not valid.

Remarks

The pguidProvider parameter will be a null GUID if there is no currently selected provider.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header wpcapi.h

See also

IWPCProviderSupport