3.1.4.3 RRPC_FWRestoreDefaults (Opnum 2)

The RRPC_FWRestoreDefaults method replaces the contents of LocalStore with the contents of DefaultsStore.

 unsigned long RRPC_FWRestoreDefaults(
   [in] FW_CONN_HANDLE rpcConnHandle
 );

rpcConnHandle: This parameter is an RPC binding handle that connects to the RPC interface of the Firewall and Advanced Security Protocol.

Return Values: The method returns 0 if successful; if failed, it returns a nonzero error code. The field can take any specific error code value, as specified in [MS-ERREF].

Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying RPC protocol, as specified in [MS-RPCE]. If any lower-layer errors are reported by RPC exception, this exception is converted to an error code and reported to higher-layer protocols via the return value.

The server MUST first validate that the client is authorized to perform the requested operation (as defined in section 3.1.4) before executing this method. Next, the server MUST replace the contents of LocalStore with the contents of DefaultsStore. The server then MUST merge the new contents of LocalStore with the existing contents of the GroupPolicyRSoPStore (as described in section 3.1.1) and store the result in DynamicStore. Finally, the server MUST invoke the abstract interface SetEffectiveFirewallPolicy (section 3.1.6.6) with the contents of DynamicStore.