Collapse All
Parallels C API Reference Guide
ContentsIndex
PreviousUpNext
PrlEvent_GetVm Function
PrlApi.h  PHT_EVENT  Send Feedback

Obtains a handle of type PHT_VIRTUAL_MACHINE referencing the virtual machine that generated the event.

Syntax
PRL_RESULT PrlEvent_GetVm(
    PRL_HANDLE hEvent, 
    PRL_HANDLE_PTR pVm
);
File
Parameters

hEvent
A handle of type PHT_EVENT identifying the event.
pVm
[out] A pointer to a variable that receives the virtual machine handle.

Returns

 

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

When processing an event inside a callback function (event handler) this function is the only way to get the virtual machine handle.

Links
Copyright (c) 1999-2009 Parallels Software International Inc.
What do you think about this topic? Send feedback!