Path: utzoo!utgpu!water!watmath!clyde!att!ihnp4!ucbvax!USU.BITNET!SLMYQ From: SLMYQ@USU.BITNET Newsgroups: comp.sys.amiga.tech Subject: Re: SetName (and other BSTRs) Message-ID: <8805261433.AA00610@jade.berkeley.edu> Date: 26 May 88 14:32:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 22 >The BSTR for cli_SetName is statically allocated -- as part of the CLI's >(inverted) stack. Don't even think about releasing it, but simply blast >in your new string. The buffer is 64 characters long (including the >leading length byte). Ah, no wonder everything crashed when I EndCLI'ed! :) Will the buffer always be 64 characters long? Is there any way to find out how long the buffer is so that programs will be compatible with other OS versions? >BTW, was there a problem with prior versions of ConMan with your CD program? >Since ConMan is just an I/O handler, it should be independent of anything >related to CLI structures. My first version of the CD program didn't do this SetName things - that's not the problem. You'll have to tell me if I'm right or not, but it seems ConMan 1.0 didn't support the DiskInfo packet or maybe it just didn't put the correct window pointer into the InfoData structure. Both versions of my CD program work with ConMan 1.1 - I've tried it. > -- Bill (ConMan, WShell author) Bryan Ford (SLMYQ@USU.BITNET)