Collapse All
Parallels C API Reference Guide
ContentsIndex
PreviousUpNext
PrlVmDevSerial_SetSocketMode Function
PrlApi.h  PHT_VIRTUAL_DEV_SERIAL_PORT  See Also  Send Feedback

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
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
Copyright (c) 1999-2009 Parallels Software International Inc.
What do you think about this topic? Send feedback!