3.2.4.5.7 WSRMActivate (Opnum 13)

The WSRMActivate method activates or deactivates WSRM management state.

 [id(7), helpstring("method WSRMActivate")] HRESULT WSRMActivate(
   [in] BOOL bActivate
 );

bActivate: A Boolean value that specifies whether to activate or deactivate WSRM.

Value

Meaning

FALSE

0x00000000

Management state of WSRM management service MUST be set to inactive or stopped.

TRUE

0x00000001

Management state of WSRM management service MUST be set to active or running.

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.

0x81FF0075

WRM_WRN_WSRM_ALREADY_ACTIVATED

WSRM has already been activated.

0x81FF0074

WRM_WRN_WSRM_ALREADY_DEACTIVATED

WSRM has already been deactivated.

This method MUST update the registry according to the management state of WSRM. If the WSRM management service later restarts, for example, after a reboot of the operating system, the WSRM management service MUST attempt to restore its prior management state.<83>

Additional IWRMConfig interface methods are specified in section 3.2.4.5.