Article View: borland.public.cppbuilder.nativeapi
Article #16254Re: Help with NetUserGetInfo
From: Randel Bjorkquist
Date: Fri, 23 May 2003 18:37
Date: Fri, 23 May 2003 18:37
43 lines
2456 bytes
2456 bytes
Hey Serguei, That worked. But my next question would be why would it work on some computers but not others? Sorry, I know that is a really open question, but I'm just a bit confused. Once again, that did work and I thank you, Randel "Serguei" <noone@nowhere.no> wrote in message news:3ece2650@newsgroups.borland.com... > > You may want to execute NetUserGetInfo against > PDC of your network. Use the first parameter of the function. > > > "Randel Bjorkquist" <rbjorkquist@coilcraft.com> wrote: > >Hi all, > > > >I have written a test program that uses both the GetUserName & > >NetUserGetInfo functions. They both work just peachy on my computer, a > >Windows2000 Pro with my account in the local administrators group. But when > >I run that same test program on someone else's computer, I get the > >"NERR_UserNotFound" error. > > > >I don't understand why or how this comes up, because they are logged onto > >our network. The documentation for NetUserGetInfo says that "No special > >group membership is required to successfully execute NetUserGetInfo. This is > >a change from LAN Manager, which required membership in the Administrators > >or Account Operators local group..." > > > >Can someone give me a pointers as to where to start trouble shooting? > > > >Thanks, > > > >Randel Bjorkquist > > > > >
Technical Details
Message-ID:
<3ece6a71$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ece194f$1@newsgroups.borland.com> <3ece2650@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7a43348e30774584 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-23 11:53:45 PST From: "Randel Bjorkquist" <rbjorkquist@coilcraft.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ece194f$1@newsgroups.borland.com> <3ece2650@newsgroups.borland.com> Subject: Re: Help with NetUserGetInfo Date: Fri, 23 May 2003 13:37:38 -0500 Lines: 45 Organization: Coilcraft, Inc. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 209.172.185.194 Message-ID: <3ece6a71$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1053715057 209.172.185.194 (23 May 2003 11:37:37 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail