3.2.4.7.14 GetConditionalPolicy (Opnum 20)

The GetConditionalPolicy function returns conditions for a specified conditional policy.

 [id(14), helpstring("method GetConditionalPolicy")] HRESULT GetConditionalPolicy(
   [in] BSTR bstrPolicyName,
   [out] BSTR* pbstrPolicyInfo
 );

bstrPolicyName: The name of the conditional policy for which conditions are to be returned.<111>

pbstrPolicyInfo: A pointer to a string that returns the resource policy conditions, in the form of a ConditionalPolicy element (section 2.2.5.12). For an example, see ConditionalPolicy example (section 4.2.9).

Return Values: This method returns 0x00000000 for success or a negative HRESULT value (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.

Return value/code

Description

0x00000000

S_OK

Operation successful.

0x80070057

E_INVALIDARG

One or more arguments are invalid or the specified policy name is not found.

Additional IWRMPolicy interface methods are specified in section 3.2.4.7.