IVMVirtualServer::FetchScriptByEvent method

The FetchScriptByEvent method retrieves the script command line associated with the specified event type.

Syntax

HRESULT FetchScriptByEvent(
  [in]  VMEventType eventType,
  [out] BSTR        *outCommandLine
);

Parameters

eventType [in]

The event type.

outCommandLine [out]

Command line executed when the specified event occurs. Set to NULL if no command is attached to the event type specified by the eventType parameter.

Return value

This method can return one of these values.

Return code Description
S_OK
The operation was successful.
E_POINTER
The outCommandLine parameter was NULL.
E_INVALIDARG
The event parameter is not valid.
VM_E_VM_UNKNOWN
The configuration is unknown.
DISP_E_EXCEPTION
An unexpected error occurred.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMVirtualServer

VMEventType