🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: users on Win NT

#10247
From: Jerry Bloomfield (TeamB)
Date: Sat, 08 May 2004 00:27
18 lines
1805 bytes
On Fri, 07 May 2004 10:45:11 +0200, Daniele Borini <borini@infinito.it>
wrote:

>how can i detect the user type and/or priviligies in win NT? I mean, i'd 
>like to know if a user is or has administrator priviligies, i tried to 
>check if username is "administrator" but it's not enough..
>Someone can help me??

Does the function NetUserGetInfo() help you with your task?  Since I don't
know what information you desire,  I am not sure if that function can
provide the information or not.  If it does not,  it might help lead you to
a function that can do what you want.

Jerry Bloomfield (TeamB)
-- 
http://www.teamb.com                                      JersWork@iwc.net
Please do *NOT* send private e-mail without prior permission (my anti-spam 
filters will probably just delete it anyway <g>)
Technical Details
Message-ID: <08ao90liuvv2tuk6ju9fofg0dmuuak2k73@4ax.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <409b4c9e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,45cc2a6f6ff5d963
X-Google-Attributes: gid10cc67,public
From: "Jerry Bloomfield (TeamB)" <JersWork@iwc.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: users on Win NT
Date: Fri, 07 May 2004 19:27:00 -0500
Organization: LSVFA - Latest Software Version Freaks Anonomous
Reply-To: "Jerry Bloomfield (TeamB)" <JersWork@iwc.net>
Message-ID: <08ao90liuvv2tuk6ju9fofg0dmuuak2k73@4ax.com>
References: <409b4c9e@newsgroups.borland.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 216.145.232.226
X-Trace: newsgroups.borland.com 1083976019 216.145.232.226 (7 May 2004 17:26:59 -0700)
Lines: 18
X-Authenticated-User: jerswork
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail