How to Allow OS/2 Programs to Run Across LogonsID: Q137861
|
When you launch an OS/2 application from a service in Windows NT, the OS/2
application terminates when the current user logs off. If you want the
application to continue running after the user logs off, you can:
CreateProcess (
NULL,
"OS2.EXE /S /P <full path to exe> /C <command line>",
. . .
);
The <command line> includes the name of the executable. For example:
CreateProcess (
NULL,
"OS2.EXE /S /P C:\\OS2BINS\\LS.EXE /C LS *.c",
. . .
);
The OS/2 Subsystem automatically shuts down when a user logs off. Using the
/S switch on the Os2.exe command line tells the OS/2 Subsystem that it is
running in the context of a service. The Subsystem then continues to run
across logons.
The reason the application must be the first OS/2 executable launched is
that if an OS/2 Subsystem server is present, it will be used rather than
starting a new one to run as a service.
Any OS/2 applications launched by the interactive user will still be
terminated upon logoff.
Additional query words: 3.50 os2 os2ss service
Keywords : kbKernBase kbService kbGrpKernBase
Version : 3.51 4.00
Platform : WINDOWS
Issue type :
Last Reviewed: March 5, 1999