Intermec 6100 Reference Guide

Page of 328
SECTION 3
Supporting Windows Applications
3-6    PEN*KEY
R
 6100 Computer Programmer’s Reference Guide
If you do need to launch several utilities or applications before starting a
particular application, add a 
NorShellLaunch=<program  list>
" line to
WIN.INI.  This line is formatted identically with the 
run=
 line that is
used by the standard Windows shell programs.  The utilities or application
programs are run in the same order as they appear in the WIN.INI file; and
are displayed with the 
SW_SHOWMINIMIZED
 setting.  Refer to the Windows
3.1 documentation for the 
ShowWindow
 function.
NORSHELL WIN.INI Examples
All of the examples in this paragraph assume the SYSTEM.INI entry docuĆ
mented in the preceding paragraphs.  The following example WIN.INI file demĆ
onstrates running an application, MYAPP.EXE, after changing to drive C" and
directory \app."  Before running the application, the Windows clock and calculaĆ
tor programs are executed.
[WINDOWS]
NorShellRun=MYAPP.EXE /a switch /another switch
NorShellRunDir=c:\app
NorShellLaunch=clock.exe calc.exe
The following example WIN.INI file launches the Windows File Manager shell
application, which launches the clock and calculator in turn.
[WINDOWS]
NorShellRun=WINFILE.EXE
run=clock.exe calc.exe
Shutting Down Windows
Windows shuts down automatically whenever the shell program exits.  However,
because NORSHELL does not exit (in that sense), it shuts Windows down whenĆ
ever it detects that the application from the NorShellRun line no longer exists.
An application may shut down Windows on its own, by calling the Windows 3.1
ExitWindows function.  This is the preferred method.
Windows Power Management Driver:
NORWINPM.DRV, VPOWERD.386
The NORWINPM.DRV driver provides a Windows interface to the APM BIOS
extensions, for both the Standard and Enhanced modes.  VPOWERD.386 is also
included for the Enhanced mode.  The driver's functions include the following:
"
Idling the CPU when Windows has nothing to do.
"
Warning the user about critical power management events, such as low
batteries, unless an application wants to take over that responsibility.
"
Broadcasting APM event codes to Windows applications and drivers and
DOS TSRs.
The information in this paragraph corresponds to version 1.05 of NORĆ
WINPM.DRV.
3. Windows
Applications