🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WHat is my account type

#3621
From: Remy Lebeau (TeamB)
Date: Mon, 22 May 2006 21:44
22 lines
1675 bytes
"Jos�" <jose@127.0.0.1> wrote in message
news:0mb47250avbeh8vi81tmma1as7ugmjha6m@4ax.com...

> Well, I found a function named IsAdmin(void)
>
> It does one amazing thing: it requires no headers

The necessary headers are already included by the VCL by default.

> It contains the functions by Mike. These are not found in the help file.

As they are Microsoft functions, they are listed in Microsoft's
documentation, not Borland's.  The win32.hlp file does include all of them.

> Unfortunately the function seems to return true at all times.

The only way that can happen is if the code is run from a process that
actually does have admin rights.


Gambit
Technical Details
Message-ID: <44723170$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <lko372tv8d3pmfa8aljurjaqc4st3e5g9n@4ax.com> <4471e604@newsgroups.borland.com> <4471f16d@newsgroups.borland.com> <0mb47250avbeh8vi81tmma1as7ugmjha6m@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,283096f94514b8ce
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <lko372tv8d3pmfa8aljurjaqc4st3e5g9n@4ax.com> <4471e604@newsgroups.borland.com> <4471f16d@newsgroups.borland.com> <0mb47250avbeh8vi81tmma1as7ugmjha6m@4ax.com>
Subject: Re: WHat is my account type
Date: Mon, 22 May 2006 14:44:45 -0700
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <44723170$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1148334448 68.69.17.41 (22 May 2006 14:47:28 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail