3.4.5.2.9.1 IVdsServiceSAN::GetSANPolicy (Opnum 3)

The GetSANPolicy method returns the current SAN policy setting.

 HRESULT GetSANPolicy(
   [out] VDS_SAN_POLICY* pSanPolicy
 );

pSanPolicy: A pointer to a VDS_SAN_POLICY (section 2.2.2.2.1.1) structure that, if the operation is successfully completed, receives the SAN policy setting's current value.

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 validate the following parameter:

  • Verify that pSanPolicy is not NULL.

The server MUST populate the VDS_SAN_POLICY structure that pSanPolicy references with the current SAN policy setting's value, and return an HRESULT that indicates failure or success.