Collapse All
Parallels C API Reference Guide
PrlEvent_GetServer Function
PrlApi.h PHT_EVENT

Obtains a handle of type PHT_SERVER identifying the Parallels Service that generated the event.

Syntax
PRL_RESULT PrlEvent_GetServer(
    PRL_HANDLE hEvent, 
    PRL_HANDLE_PTR server
);
File
Parameters

hEvent
A handle of type PHT_EVENT identifying the event.
server
[out] A pointer to a variable that receives the server 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 server handle.

Links
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!