TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: David Adams
date: 1995-02-12 13:41:02
subject: Os/2 Shut Down In Pascal

SG> Does anyone know how i can Shut down OS/2 with Pascal ?

PF>I assume you are using a native OS/2 Pascal compiler,  that 
PF>can call OS/2 API's.  In this case,  simply call 
PF>DosShutdown().

Tim Sennit has a clean little implementation of a WORKPLACE shutdown in C that
makes a nice model.  DosShutdown() closes files OK, but your desktop is left to
its own devices (no pun intended).  WinShutdownSystem(hAB, hMsgQueue) behaves
like the much more desirable shutdown action for the actual desktop.  Assuming,
of course, that Pascal can get to the call.  Anyway, it's worth checking out
Sennit's TTFN on the Developers' Connection.

___
 * MR/2 2.03 NR * I don't want it now, I want it RIGHT now!

--- Maximus/2 2.02
* Origin: The Ozone Layer, Williston, VT. (802) 862-5058 (1:325/118)
SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430
SEEN-BY: 711/807 808 809 934 942 949 955 712/515 713/888 800/1 7877/2809
@PATH: 325/118 320/209 142/1 3615/50 229/2 12/2442 711/409 808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.