Share this page

# lrs_startup

Environment Functions

Initializes the WinSock DLL.

    int lrs_startup( int version );

version | The version of Windows Sockets.

The lrs_startup function initializes the Windows Sockets DLL. It specifies the highest Windows Sockets version that can be used with the application. This function must be executed before all other LRS functions. Typically, it appears in the vuser_init section of the script. If this function fails, execution is terminated immediately.

## Return Values

Windows Sockets Return Values

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

In the following example, the lrs_startup function initializes the Windows Sockets environment. After the environment is set up, a socket can be created and data can be transmitted.

    int LR_FUNC vuser_init(LR_PARAM p)

    {

        lrs_startup(257);

        return 0;

    }

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: