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 |
---|---|
|
The operation was successful. |
|
The outCommandLine parameter was NULL. |
|
The event parameter is not valid. |
|
The configuration is unknown. |
|
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 |
|