Ldvx_open(), Syntax, Remarks – Echelon OpenLDV User Manual

Page 42

Advertising
background image

34

Using the OpenLDV API

Syntax

LDVCode ldv_xlate_device_name(

LPCSTR device_name,

LPSTR driver_name,

int* driver_name_len

)

Table 19. ldv_xlate_device_name() Parameters

Parameter

Direction Description

device_name

Input

The name of the network interface.

driver_name

Output

A pointer to a buffer to receive the physical name.

driver_name_len Input

Output

A pointer to the length of the buffer that will receive the

physical name.
On return, set to the length of the returned name.

Remarks

This function returns LDV_OK if the physical name for the network interface is

successfully retrieved.

ldvx_open()

Call this function to establish communications between your application and a

network interface. This function also registers a Windows HWND object for

receiving session state change notifications and returns a unique handle that you

can provide to the other OpenLDV functions to identify this instance of the

network interface.

Syntax

LDVCode ldvx_open(

LPCSTR id,

LdvHandle* handle,

HWND hWnd,

LONG tag

)

Advertising