3.4.5.2.4.13 IVdsService::Unadvise (Opnum 16)
The Unadvise method unregisters a client from being notified by the server of changes to storage objects.
-
HRESULT Unadvise( [in] DWORD dwCookie );
dwCookie: The cookie value generated when the IVdsAdviseSink interface was registered.
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 dwCookie corresponds to a callback object in the list of callback objects.
Remove the IVdsAdviseSink interface that pSink specifies from the list of callback objects.
The server MUST return an HRESULT indicating failure or success.