Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlVmDevSerial_SetSocketMode Function
PHT_VIRTUAL_DEV_SERIAL_PORT  See Also

Sets the socket mode for a virtual serial port.

Syntax
PRL_RESULT PrlVmDevSerial_SetSocketMode(
    PRL_HANDLE hVmDev, 
    PRL_SERIAL_PORT_SOCKET_OPERATION_MODE nSocketMode
);
File

PrlApiVm.h

Parameters

hVmDev
A handle of type PHT_VIRTUAL_DEV_SERIAL_PORT identifying the serial port.
nSocketMode
The socket mode emulation type to set.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

Use this function to set the socket mode when the emulation type of the port is "socket". To get the port's emulation type, use the PrlVmDev_GetEmulatedType function.

See Also
Links
© 2021 Parallels International GmbH. All rights reserved.