Path: utzoo!mnetor!uunet!mcvax!unido!rmi!kkaempf From: kkaempf@rmi.UUCP (Klaus Kaempf) Newsgroups: comp.sys.amiga Subject: Silence the AmigaDOS (WindowPtr) Message-ID: <813@rmi.UUCP> Date: 2 Dec 87 14:31:24 GMT Reply-To: kkaempf@rmi.UUCP (Klaus Kaempf) Organization: RMI Net, Aachen, W.Germany Lines: 64 This message is being forwarded by me for a friend who has no access to the UseNet (yet!). Feel free to send replies to me. Klaus Kaempf kkaempf@rmi.UUCP - - - - - - - - - Several questions concerning the WindowPtr field within the process structure led me to believe this one could be useful. "DOSErr" lets you set your current CLI's WindowPtr to (0) or (-1). "SHOW" will show you the current setting, "QUIET" and "REQUESTER" are self-explanatory. All keywords may be abbreviated by just giving the first letter. If you do not give any parameters, it will change between "QUIET" and "REQUESTER". DOSErr QUIET If EXISTS DF3: AddBuffers DF3: 16 EndIf DOSErr REQUESTER It is especially useful in a startup-script to test for the existence of volumes, drives etc. without this funny "insert volume DF3: in any drive". 8-) DOSErr will not change anything, if a value other than (0) or (-1) has been written to WindowPtr before. !ralph begin 777 DOSErr M```#\P`````````"``````````$```!/````CP```^D```!/*&H!9'`,3I4D, M`2(\````E4GZ_^XH;/_\+PPO`MG,V
L&@`Y8=8AKZ&;1(B,&@`*$5P+
M#$Z52H%G``!L8.@B'RA%<`Q.E4J!9UXH:@(8<`Q.E>6!)D$O"V<,2>H"&'`/#
M*-M1R/_\2?H`1"5,``@H:@`$<"!R`$Z5<``N`"(?9PXF04GJ`AAP#R;<4