RTN_FN_GETDATALONG

RTN_FN_GETDATALONG is a pointer to an application function that retrieves the value previously recorded in the application context by RTN_FN_SETDATALONG.

Syntax

ULONG(*RTN_FN_GETDATALONG)(
	VOID pAppContext,
	LONG offset
);

Parameters

pAppContext

Application context pointer used as an argument in RtNalConfigureQueue.

offset

Offset of data to retrieve. The range is application specific.

Return Value

Returns a value previously recorded in the application context data area by RTN_FN_SETDATALONG, if the function succeeds.

Remarks

If an application callback RTN_FN_GETDATALONG was supplied in RtNalConfigureQueue, it is called from RtnGetDataLong in a device driver if the offset is greater than 1.

Offset 0 is reserved to identify the device driver instance from the network pointer passed to a RTND API function.

Offset 1 is reserved to identify the device queue number from the network pointer passed to a RTND API function.

Requirements

Minimum Supported Version RTX64 4.0
Header rtnapi.h, RtNalApi.h
Library RtNal.lib

See Also: