RtnGetDevicePtr

RtnGetDevicePtr gets the network device pointer associated with ASCII network device name. RtnGetDevicePtr is normally called in the stack configuration routine to access network device structure from network device name.

Syntax

void * RtnGetDevicePtr(
    void *pBuffer,
    DEVICE_VALUE eVal,
);

Parameters

pBuffer

A pointer to a buffer containing a zero-terminated network adapter friendly name or adapter MAC address.

eVal

The DEVICE_VALUE type specifying the pBuffer pointer is either a network adapter friendly name or adapter MAC address.

Return Value

An opaque network device pointer if the function succeeds, NULL if the function fails

Requirements

Minimum Supported Version RTX64 2013
Header rtnapi.h
Library RtTcpip.lib