Article View: comp.sys.amiga.tech
Article #6010Writing a handler
From: Greg Miller
Date: Tue, 23 Oct 1990 01:25
Date: Tue, 23 Oct 1990 01:25
40 lines
2175 bytes
2175 bytes
For a current project, I'm writing a console-ish handler. However, with
the sparse documentation on them, I've come up to a problem. (For
documentation, I'm using the little stated in the back of the AmigaDos
manual, and the article(s) on file systems from a few old issues of
transactor by the Software Distillery guys.)
Here's the problem:
I have a device associated through a mountlist with my handler - let's
call it "HAN:". I need to be able to issue a NEWCLI HAN:parameters command.
I receive ACTION_FINDINPUT and ACTION_FINDOUTPUT packets fine.
(Although I don't remember which comes through first.) The first packet
contains a Lock of 0 (as I expected), and a BSTR containing the filename -
in this case, "HAN:parameters". This works fine.
Here's the problem:
When the second of the two comes through, it comes with a filename of "*",
(which I process as "current output"), and a Lock (to which, as far as I
can tell, the "*" is supposed to be relative). Where's this Lock coming
from? My handler certainly isn't creating this lock in response to any
packets. Secondly, since both the ACTION_FINDINPUT and ACTION_FINDOUTPUT
are supposed to access the same thing, how can I associate the lock to
the previous ACTION_FINDwhatever? (Is there any way I can find the handle
that I filled in during the original ACTION packet from the lock passed
to me by the second?)
Help!
- Greg
+----------------------------------------------------------------+
| A sign of mismanagement, over- | Greg Miller |
| complication and overall idiocy: | ..ames!sharkey!ionic!gm |
| | gm@ionic.uucp |
| | |
| "Designed By Committee" | |
+----------------------------------------------------------------+
Technical Details
Message-ID:
<gm.3448@ionic.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!dino!sharkey!ionic!gmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!dino!sharkey!ionic!gm From: gm@ionic.UUCP (Greg Miller) Newsgroups: comp.sys.amiga.tech Subject: Writing a handler Message-ID: <gm.3448@ionic.UUCP> Date: 23 Oct 90 01:25:47 GMT Lines: 40