Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!van-bc!rsoft!mindlink!a186 From: Harvey_Taylor@mindlink.UUCP (Harvey Taylor) Newsgroups: comp.sys.amiga.programmer Subject: Re: RASTPORT from ML Message-ID: <5169@mindlink.UUCP> Date: 14 Mar 91 22:54:39 GMT Organization: MIND LINK! - British Columbia, Canada Lines: 61 In <65143@eerie.acsu.Buffalo.EDU>, v089pfrb@ubvmsd.cc.buffalo.edu (Jeffrey C Murphy) writes: | | How do you locate the rastport value from machine language if |your program is using the cli as the output window? | You send you console task a packet, as outlined in the excerpt below. (Watch out for NULL values in the args returned. ie. Not a CLI, not a window) +-- | A DiskInfo packet (ACTION_DISK_INFO = 25L) sent to the console handler | ((struct MsgPort *)process->pr_ConsoleTask)) now returns not only the | window pointer in the id_VolumeNode field, but also a pointer to the | console IO block used by the console handler in the id_InUse field. | (These fields are part of the InfoData structure that is filled | in by sending the ACTION_DISK_INFO packet). Remember that you must | AllocMem your InfoData structure to assure longword alignment | since a BPTR to the structure is arg[0] of the packet. | A pointer to the ConUnit structure (see devices/conunit.h, .i) | can be found via the console IO block pointer: | conUnit = (struct ConUnit *) | ((struct IOStdReq *)infoData->id_InUse)->io_Unit; | | There is a lot of useful information in the ConUnit structure | such as text cursor position and limits. If you are using the | exec console.device directly, you should be able to get the | ConUnit pointer from yourIoRequest->io_Unit. +-- If you are in the dark on DOS Packets you can take a look at: DOS Packets References ====================== SENDPACKET.C by Lindsay (FF35 & 66) ASENDPACKET.C by Lindsay (FF35 & 66) CONPACKETS.C by Carol Scheppner (FF56) New DosPackets.txt by Carol Scheppner (FF65) AMIGADOS.txt by Tim King MonProc.c by P. Lindsay (FF69) MonProc.c by P. Lindsay (FF79) PickPacket by Toebes & Walker (FF227) PacketSupport (a library) by O.Wagner (FF346) --- The Matt Dillon article in Trans-Ami #1 The AmigaDOS Technical Reference Manual William Hawes in AA&J V3,#2. --- -het PS. I am collecting references on DOS Packets, Exec Devices, FileSystems. Email me your lists & I will summarize. "You put your eyes in your pocket & your nose on the ground. There oughta be some kinda law against you comin around." -R.Zimmerman Harvey Taylor Meta Media Productions uunet!van-bc!rsoft!mindlink!Harvey_Taylor a186@mindlink.UUCP