IWbemQualifierSet::Get method

The IWbemQualifierSet::Get method gets the specified named qualifier, if found.

Syntax

HRESULT Get(
  LPCWSTR wszName,
  long    lFlags,
  VARIANT *pVal,
  long    *plFlavor
);

Parameters

wszName

Name of the qualifier for which the value is being requested. The pointer is treated as read-only.

lFlags

Reserved. This parameter must be 0.

pVal

When successful, VARIANT is assigned to the correct type and value for the qualifier. VariantInit is called on this VARIANT.

It is the responsibility of the caller to call VariantClear on the pointer when the value is no longer required. If there is an error code, the VARIANT pointed to by pVal is not modified.

If this parameter is NULL, the parameter is ignored.

plFlavor

Can be NULL. If not NULL, this must point to a LONG that receives the qualifier flavor bits for the requested qualifier. For more information, see Qualifier Flavors and WBEM_FLAVOR_TYPE.

Return Value

This method returns an HRESULT indicating the status of the method call. The following list lists the value contained within an HRESULT.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wbemcli.h (include Wbemidl.h)
Library Wbemuuid.lib
DLL Fastprox.dll; Krnlprov.dll; Ncprov.dll; Wbemcore.dll

See Also

Qualifier Flavors