Platform SDK: Windows Management Instrumentation

IWbemClassObject::GetPropertyQualifierSet

The IWbemClassObject::GetPropertyQualifierSet method gets the qualifier set for a particular property in the class object. You can use this method with properties that are a member of an instance or a class definition.

HRESULT IWbemClassObject::GetPropertyQualifierSet(
  LPCWSTR wszProperty,
  IWbemQualifierSet **ppQualSet 
);

Parameters

wszProperty
[in] Property for which the qualifier set is requested. This cannot be NULL and must point to a valid LPCWSTR. The property can be local or propagated from the superclass. Note that system properties have no qualifiers so this method returns the error code WBEM_E_SYSTEM_PROPERTY if you attempt to obtain the IWbemQualifierSet pointer for a system property.
ppQualSet
[out] Receives an interface pointer that allows access to the qualifiers for the named property. The caller must call IWbemQualifierSet::Release on the pointer when access to the object is no longer required. The property is set to point to NULL when there are error conditions. A new object is not returned.

Return Values

This method returns an HRESULT object that indicates the status of the method call.

Value Meaning
WBEM_E_FAILED There has been a general failure.
WBEM_E_NOT_FOUND The specified property does not exist.
WBEM_E_OUT_OF_MEMORY There was not enough memory to complete the operation.
WBEM_E_SYSTEM_PROPERTY There was an attempt to get qualifiers on a system property.
WBEM_S_NO_ERROR The call succeeded.
WBEM_E_INVALID_PARAMETER An invalid parameter was specified.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
  Windows 95/98: Requires Windows 95 or later (with DCOM).
  Header: Declared in Wbemcli.h; include Wbemidl.h.
  Library: Use Wbemuuid.lib.

See Also

IWbemQualifierSet