3.4.5.2.9.2 IVdsServiceSAN::SetSANPolicy (Opnum 4)

The SetSANPolicy method sets the SAN policy value.

 HRESULT SetSANPolicy(
   [in] VDS_SAN_POLICY SanPolicy
 );

SanPolicy: A VDS_SAN_POLICY (section 2.2.2.2.1.1) structure that, if the operation is successfully completed, is used to set the new value for the SAN policy.

Return Values: The method MUST return zero or a non-error HRESULT, as specified in [MS-ERREF], to indicate success or return an implementation-specific nonzero error code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service Remote Protocol, see section 2.2.3.

When the server receives this message, it MUST set the SAN policy for the machine to the value indicated in the VDS_SAN_POLICY structure that SanPolicy references, and return an HRESULT that indicates failure or success.