3.2.4.7.11 GetCurrentPolicy (Opnum 17)
The GetCurrentPolicy method returns the current resource policy.
-
[id(11), helpstring("method GetCurrentPolicy")] HRESULT GetCurrentPolicy( [out] BSTR* pbstrCurrentPolicyInfo, [out] MANAGEMENT_TYPE* enumManage );
pbstrCurrentPolicyInfo: A pointer to a string that returns the current resource policy, in the form of a Policy element (section 2.2.5.21). For an example, see Policy example (section 4.2.19). If enumManage is PROFILING, this parameter returns the info of the policy whose name was specified when setting PROFILING mode using the SetCurrentPolicy method.
enumManage: A pointer to a MANAGEMENT_TYPE enumeration (section 2.2.3.5) value that returns the current mode in which the management service is operating.
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.
Additional IWRMPolicy interface methods are specified in section 3.2.4.7.