From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,c007e0091e42fc1 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,c007e0091e42fc1 X-Google-Attributes: gid1164f8,public From: "antonio.carlini" Subject: Re: Dec C; System Services question.... Date: 2000/10/04 Message-ID: <39DB99A0.F4360A9D@iee.org>#1/1 X-Deja-AN: 677612962 Content-Transfer-Encoding: 7bit References: <8rg0j9$fhr$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 970692930 213.105.125.75 (Wed, 04 Oct 2000 21:55:30 BST) Organization: ntl Cablemodem News Service MIME-Version: 1.0 Reply-To: arcarlini@iee.org NNTP-Posting-Date: Wed, 04 Oct 2000 21:55:30 BST Newsgroups: comp.sys.dec,comp.os.vms atadashi@my-deja.com wrote: > > Well. I've just about exhausted all my resources. So, as a last > resort I'm posing this question to this newsgroup. > I'm using the System Services routines, > specifically, "SYS$DEVICE_SCAN", from DEC C to locate disk drives on > the current node. I'm running DEC C v5.7-004 on OpenVMS Alpha v7.2-1. > Here is a snipet of the source code: Never, ever supply a small complete example of compilable code that demonstrates the problem. Support people absolutely hate this, they just love to have to turn your text into compilable code by hand over several iterations :-) [snip uncopilable stuff ...] > where parm4 is, > ILE3 stItemList[2] = { > { 4, DVS$_DEVCLASS, &iItemCode, iZERO }, > { iZERO, iZERO, iZERO, iZERO } > }; > and... > unsigned long int iItemCode; you left out "is apparently uninitialised" although since there doesn't seem to be a complete example it is hard to tell for sure :-) > The code compiles properly, links properly and runs properly but only > returns an iStatus of 2648 (SS$_NOMOREDEV - no device was found). So, > the call is working but the device search criteria does not seem to be > correct. iItemCode almost certainly had junk in it ... > If anyone out there has used this system service, could you please help > me? If the above doesn't sort you out, post a *small* example that fails (it doesn't need all the fancy command line parsing stuff ... just hard code the search string to "*" and don't bother displaying output .. .that's what DEBUG is for). Antonio --------------- Antonio Carlini arcarlini@iee.org