🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #3334

async copier -- AmigaDOS-like requestors

#3334
From: Deven T. Corzine
Date: Fri, 13 Apr 1990 11:36
32 lines
2042 bytes
One last problem.  I wanted the diskcopier to be able to bring up
requesters very much like those AmigaDOS brings up, except to use
messages like "destination disk is write-protected" and the like.  I
tried to use the Intuition AutoRequest() function with the window
pointer that's supposed to be in the pr_WindowPtr field of the process
structure, but it never worked.  It turned out that the pr_WindowPtr
was zero.

I realize zero is a legal value, and perhaps I had run noreq in the
shell-startup, clearing it.  In fact, come to think of it, I likely
did.  In any event, given that pr_WindowPtr was zero, I instead tried
using a FindWindow() routine I had written to get the window pointer
by sending the ACTION_DISKINFO packet to the handler for "*" and
returning the window pointer.

This routine works, a test program changed the title bar and screen
title bar for a bit then changed them back and exited.  However, the
AutoRequest() still failed. I don't remember if it GURUed, but I think
it did, probably with either 00000003 or 00000004...  (i.e. address
error or illegal instruction.)  But it didn't work anyway.  Did I miss
something else?  Also, is it possible to do AutoRequest() or similar
without having a window already open?  (i.e. some way to say "use the
workbench screen"...)

Well, I guess that's all for now...  (whew!)

Deven
-- 
Deven T. Corzine        Internet:  deven@rpi.edu, shadow@pawl.rpi.edu
Snail:  2151 12th St. Apt. 4, Troy, NY 12180   Phone:  (518) 274-0327
Bitnet:  deven@rpitsmts, userfxb6@rpitsmts     UUCP:  uunet!rpi!deven
Simple things should be simple and complex things should be possible.
Technical Details
Message-ID: <DEVEN.90Apr13073721@netserv2.rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!netserv2!deven

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!netserv2!deven
From: deven@rpi.edu (Deven T. Corzine)
Newsgroups: comp.sys.amiga.tech
Subject: async copier -- AmigaDOS-like requestors
Message-ID: <DEVEN.90Apr13073721@netserv2.rpi.edu>
Date: 13 Apr 90 11:36:22 GMT
Distribution: comp
Organization: Rensselaer Polytechnic Institute, Troy, NY
Lines: 32