Collapse All
Parallels Desktop® 10 for Mac — C API Reference Guide
PrlEvent_GetVm Function
PHT_EVENT

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

PrlApiCore.h

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 © 1999-2015 Parallels IP Holdings GmbH and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!