RtkIsTcpStackLicensed

The function RtkIsTcpStackLicensed verifies whether a specified RTX64 RT/TCP-IP Stack version is installed and has a valid license. It can only be used in RTK drivers. It cannot be used in Windows or RTSS applications.

Syntax

NTSTATUS RtkIsTcpStackLicensed(
	BOOLEAN* pResult,
	unsigned int majorVersion
);

Parameters

pResult

A pointer to memory to fill with the API result if the API returns STATUS_SUCCESS. Must be allocated by the caller or the API will return STATUS_INVALID_PARAMETER. If the RTX64 RT-TCP/IP Stack is licensed and installed, a value of TRUE will be written into the provided memory, otherwise FALSE is returned.

majorVersion

The major version of the RTX64 RT-TCP/IP Stack to validate.

RT-TCP/IP Stack Version majorVersion Value
RTX64 3.0 3
RTX64 2014 (includes Service Packs) 2
Currently installed version

0

Return Value

Returns an error code:

Error Code Description

STATUS_SUCCESS

The call has succeeded

STATUS_INTERNAL_ERROR

The call failed with an internal system error

STATUS_INVALID_PARAMETER

An invalid <length> parameter was passed, or one of the required pointer parameters was NULL

STATUS_DRIVER_INTERNAL_ERROR The call failed with an internal driver error

Requirements

Minimum Supported Version RTX64 2014 with Service Pack 2
Header RtkApi.h
Library RtkApi.lib