[comp.sys.amiga.tech] How do you disable DOS requesters ?

850031m@aucs.UUCP (GORDON R. MAC GREGOR) (04/14/89)

In a dpost Matt Dillon writes:
 
>Subject: NOTE ON DME 1.31 .. configuring the default window size

>it is OK, but I forgot to disable DOS requesters during the open so if you
>do not have LIBS: mounted you will get a requester.  You can cancel the 
>requester, but this is a bother.

I am having a similar problem trying to read environment variables. I want
to diable the "Insert volume env:" requestor if env: is not assigned.

How do you do this? I have been searching books and source but have found
nothing so far.
 
>						-Matt

                                                -Ross  :-)

  no time.. no time..     

new@udel.EDU (Darren New) (04/16/89)

In article <1790@aucs.UUCP> 850031m@aucs.UUCP (GORDON R. MAC GREGOR) writes:
>I am having a similar problem trying to read environment variables. I want
>to diable the "Insert volume env:" requestor if env: is not assigned.
>How do you do this? I have been searching books and source but have found
>nothing so far.
>                                                -Ross  :-)

Look in your Process structure. There is a variable there called pr_WindowPtr.
Somewhere in a manual which I can't find right now (DOS tech ref?) it
says that if you set this to point to a window, DOS requesters will
come up in this window. If you set it to 0, they will come up in their
own window on WBENCH screen, and if you set it to -1 they will not
come up at all and you will just get the error back (as if the user
cancelled). I may have the 0 and -1 cases backwards, so just look
at one of yours to see which it is. Also, be sure to put it back how
you got it because DOS does not reinitialize this after each command.
 -- Disclaimer: I haven't done this. I only read about it :)