RtIsAppRunnable
RtIsAppRunnable returns whether the provided RTSS application binary can run. This means it has been built using a valid RTX64 SDK license, and that there is a valid license for the feature on the system with the given majorVersion.
Syntax
BOOL RtIsAppRunnable( LPTSTR lpApplicationPath, LPTSTR lpFeatureName, DWORD majorVersion );
Parameters
lpApplicationPath
The absolute pathname of an RTSS application.
lpFeatureName
A string specifying a product feature code. The table below lists the common product codes for RTX64:
Product Code | Description |
---|---|
RTX64 | RTX64 Subsystem |
TCP64 | RT-TCP/IP Stack |
majorVersion
The major version of the RTX64 Runtime to validate.
Runtime Version | majorVersion Value |
---|---|
RTX64 3.0 | 3 |
RTX64 2014 (includes Service Packs) | 2 |
Currently installed version |
0 |
Return Value
Returns TRUE if the given feature has a valid license and the application can run with the given product feature code. Otherwise it returns FALSE. Call GetLastError to obtain an error code.
Requirements
Minimum Supported Version | RTX64 3.0 |
Header | Rtapi.h |
Library | RtApi.lib (Windows), Rtx_Rtss.lib (RTSS) |