Collapse All
Parallels C API Reference Guide
PrlApi_RegisterRemoteDevice Function
PrlApi.h System Functions

Registers remote devices of specified type

Syntax
PRL_RESULT PrlApi_RegisterRemoteDevice(
    PRL_DEVICE_TYPE device_type, 
    PREMOTE_DEVICE_CREATE_HANDLER pCreateHandler, 
    PRL_VOID_PTR createCtx, 
    PREMOTE_DEVICE_DESTROY_HANDLER pDestroyHandler, 
    PREMOTE_DEVICE_COMMAND_HANDLER pCommandHandler
);
File
Parameters

device_type
[in] Type of the devices to register as capable to be remote
pCreateHandler
[in] Function that creates remote device instances
createCtx
[in] Context to pass to the REMOTE_DEVICE_CREATE_HANDLER
pDestroyHandler
[in] Function that destroys device instance
pCommandHandler
[in] Function that handles commands to the remote device
Returns

PRL_ERR_SUCCESS - device was registered. Other values means some error

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