Provider::ValidateMethodFlags method

[The Provider class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]

The ValidateMethodFlags method determines whether a set of flags is valid for an execute method operation.

Syntax

HRESULT ValidateMethodFlags(
  long lFlags
);

Parameters

lFlags

Bitmask of flags that are validated.

Return Value

Returns WBEM_S_NO_ERROR if the flags are valid and WBEM_E_UNSUPPORTED_PARAMETER if one or more flags are not valid.

Remarks

At present, the Provider class does not support any method flags. Therefore, if lFlags is set to a value other than zero (0), Provider::ValidateMethodFlags automatically returns WBEM_E_UNSUPPORTED_PARAMETER.

Framework providers must override this method to validate flags that are unknown to the base Provider class.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header provider.h (include FwCommon.h)
Library FrameDyn.lib
DLL FrameDynOS.dll; FrameDyn.dll