IWbemQualifierSet::Get method (wbemcli.h)

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


  [in]  LPCWSTR wszName,
  [in]  long    lFlags,
  [out] VARIANT *pVal,
  [out] long    *plFlavor


[in] wszName

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

[in] lFlags

Reserved. This parameter must be 0.

[out] 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.

[out] 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.


Requirement Value
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