CompuServe Thread

Forum unknown · Programming

#ParentDir from CLI

3 messages in this thread
#47412From: Charlie HeathJan 6, 1987 12:26 AM
The currentdir stuff is in the process structure – You do a FindTask(0) to get the process address base; then do er make that get the "pr_CLIStruct" pointer from the process base. Shift twice; stir well. Then the current directory is in cli_SetName indexed from the BCPL pointer pr_CLIStruct. It is a BSTR, which means shift twice before using; then the length of the string is in the first byte, with the data following. …cheath ( That's in the ADOS Tech Ref manual on page 3-2 )
#47470From: Larry Phillips/ICUGJan 6, 1987 3:55 AM
Thanks Cheath, though I had a little differnt point of view in mine when I saked the question. I am attempting to start from Execbase and trace my way through the various structures and pointers rather than to use system calls to "find" things. The knowledge of the way the entire AMiga is laid out will be invaluable, and it may even lead to some interesting code.
#47470From: Larry Phillips/ICUGJan 6, 1987 3:55 AM
Thanks Cheath, though I had a little differnt point of view in mine when I saked the question. I am attempting to start from Execbase and trace my way through the various structures and pointers rather than to use system calls to "find" things. The knowledge of the way the entire AMiga is laid out will be invaluable, and it may even lead to some interesting code.