Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!uokmax!servalan!epmooch!ben From: ben@epmooch.UUCP (Rev. Ben A. Mesander) Newsgroups: comp.sys.amiga.programmer Subject: dos.library ACTION_SET_DATE question. Message-ID: Date: 6 Apr 91 02:04:02 GMT Lines: 23 I grabbed an excellent program called PickPacket from a fish disk. It's a great tool to play with dos.library packets. I'm trying to set the date on a file with it. The first thing I do is send an ACTION_LOCATE_OBJECT packet to df1:. I'm trying to set the date on a file named "df1:ruru". The ACTION_LOCATE_OBJECT packet is filled out with Arg1: NULL, Arg2: (BSTR) ruru, Arg3: EXCLUSIVE_LOCK. It appears that I get a lock on the file "ruru". So now, I send an ACTION_SET_DATE packet with Arg1 being the lock I obtained from the ACTION_LOCATE_OBJECT packet, and Arg2 being a pointer to a buffer containing nulls (I want to set the date to "the beginning of time"). But I get an error back: "Invalid object lock". This happens whether I give a shared or exclusive lock to the ACTION_SET_DATE packet. What gives? What the heck am I doing wrong? Why isn't dos.library in the RKMs? Why is the AmigaDOS manual (2nd Ed) so clear? :-) -- | ben@epmooch.UUCP (Ben Mesander) | "Cash is more important than | | ben%servalan.UUCP@uokmax.ecn.uoknor.edu | your mother." - Al Shugart, | | !chinet!uokmax!servalan!epmooch!ben | CEO, Seagate Technologies |