13.07.2015 Views

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

•Point pdwCookie to a unique cookie value that is associated with the IVdsAdviseSink interfacethat pSink specifies.•Add the IVdsAdviseSink interface that pSink specifies to the list of callback objects.•Return an HRESULT indicating failure or success.3.4.5.2.4.13 IVds<strong>Service</strong>::Unadvise (Opnum 16)The Unadvise method unregisters a client from being notified by the server of changes to storageobjects.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 [<strong>MS</strong>-ERREF]) to indicate success, or return an implementation-specific nonzero error code toindicate failure. For the HRESULT values predefined by the <strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> Remote<strong>Protocol</strong>, 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.3.4.5.2.4.14 IVds<strong>Service</strong>::Reboot (Opnum 17)The Reboot method restarts the computer on which the server is running.HRESULT Reboot();This method has no parameters.Return Values: The method MUST return zero or a non-error HRESULT (as specified in [<strong>MS</strong>-ERREF]) to indicate success, or return an implementation-specific nonzero error code toindicate failure. For the HRESULT values predefined by the <strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> Remote<strong>Protocol</strong>, see section 2.2.3.When the server receives this message, it MUST send a request to the operating system to restartthe computer and return an HRESULT indicating failure or success.3.4.5.2.4.15 IVds<strong>Service</strong>::SetFlags (Opnum 18)The SetFlags method assigns property flags to the server.HRESULT SetFlags([in] unsigned long ulFlags);[<strong>MS</strong>-<strong>VDS</strong>] — v20110610<strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> (<strong>VDS</strong>) <strong>Protocol</strong> <strong>Specification</strong>Copyright © 2011 Microsoft Corporation.Release: Friday, June 10, 2011179 / 360

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!