Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!sci.kun.nl!cs.kun.nl!rhialto From: rhialto@cs.kun.nl (Olaf Seibert) Newsgroups: comp.sys.amiga.tech Subject: Re: How do you send a DosPacket to a handler directly? Message-ID: <2425@wn1.sci.kun.nl> Date: 9 Nov 90 20:55:28 GMT References: <1990Nov7.185224.4215@cbnewsc.att.com> Sender: root@sci.kun.nl Organization: University of Nijmegen, The Netherlands Lines: 28 In article deven@rpi.edu (Deven T. Corzine) writes: > >On 7 Nov 90 18:52:24 GMT, gregg@cbnewsc.att.com (gregg.g.wonderly) said: > >gregg> The assignment of packet->dp_Arg1 = handle->fh_Args came from >gregg> looking at the MSH handler. I do not know what is really >gregg> required here. > >According to the AmigaDOS Technical Reference Manual, (yes, it exists, >but is very hard to read and understand) dp_Arg1 should be the BPTR to >the file handle. That is, that field should contain your return value >from Open(). >Deven This is when one of the ACTION_FINDwhatever packets is sent. The dp_Arg1 field (i.e., the first argument of the PACKET) points to the filehandle that you are supposed to fill in. Further, the manual claims that whatever is put into the fh_Arg1 (or fh_Args, whatever) field of the FILEHANDLE, is passed as the first argument of the ACTION_READ, -WRITE, -SEEK and -END packets. What MSH does is that it puts a pointer to its own private kind of filehandle in this field, since it usually does not need the AmigaDos FileHandle in those functions. The SFS and FFS might use the address of the FileHandle itself; I don't know or care. -- Olaf 'Rhialto' Seibert rhialto@cs.kun.nl How can you be so stupid if you're identical to me? -Robert Silverberg