IProviderProperties::GetCount method (functiondiscoveryprovider.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.]

Gets the number of properties in the property store.

Syntax

HRESULT GetCount(
  [in]  IFunctionInstance *pIFunctionInstance,
  [in]  INT_PTR           iProviderInstanceContext,
  [out] DWORD             *pdwCount
);

Parameters

[in] pIFunctionInstance

An IFunctionInstance interface pointer.

[in] iProviderInstanceContext

The context associated with the specific function instance.

[out] pdwCount

The number of properties in the property store.

Return value

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

Return code Description
S_OK
The method completed successfully.
E_INVALIDARG
One of the parameters contains an invalid argument.
E_POINTER
pdwCount parameter is NULL.

Requirements

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

See also

IProviderProperties