🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16251

Re: Help with NetUserGetInfo

#16251
From: Serguei
Date: Fri, 23 May 2003 13:46
27 lines
2044 bytes
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: <3ece2650@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ece194f$1@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 07:27:31 PST
From: "Serguei" <noone@nowhere.no>
Sender: "Serguei" <noone@nowhere.no>
Reply-To: "Serguei" <noone@nowhere.no>
Subject: Re: Help with NetUserGetInfo
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 155.94.54.251 155.94.54.251    
References:  <3ece194f$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ece2650@newsgroups.borland.com>
Date: 23 May 2003 06:46:56 -0700
X-Trace: newsgroups.borland.com 1053697616 207.105.83.65 (23 May 2003 06:46:56 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail