|
Description
An RTSS DLL is an RTSS process that is auto loaded when the real-time subsystem starts up (or by using RtssRun
). It contains functions that other RTSS processes can link against and call. The Dll example shows how to run and terminate RTSS processes from within a Win32 process (a common requirement for most applications which consist of multiple processes).
Source Files
Dll.c
is an RTSS DLL. It exports the function "Toggle" which toggles the state of the speaker. Repeated calls will generate a sound. Dll-test.c
creates a timer and uses the "Toggle" function (exported from
the RTSS DLL) to generate a sound. RunTest.c
is a Win32 program that starts the RTSS DLL and then the test program using:Remarks
Each of these can be built as Win32 .exe executable files. Build the RTSS DLL and Dll-test before trying to execute RunTest.
See also, RTSS DLLs and RTDLLs.
The sample DLL must be registered with the RTX subsystem before it can be debugged. This can be done by typing:
rtssrun.exe /y dll.rtss
APIs Referenced
RTAPI |
Win32 APIs |