Article View: borland.public.cppbuilder.nativeapi
Article #13213Testing Admin rights...
From: Mike Collins
Date: Sat, 25 Oct 2003 02:21
Date: Sat, 25 Oct 2003 02:21
16 lines
1576 bytes
1576 bytes
Hi all, just a quickie if I may, Is there any way to test if the currently logged on user has Administration privileges (other than coding some hack like trying to assign full access to a TRegistry object and checking if / why it failed :-) I have an application and I only want the config dialog to be accessible to users with Admin rights. On another completely different note, I've just written a stub DLL and when I examine it's EAT I see, in addition to my defined export functions, a function / method / entry for ___CPPdebugHook. I can hazard a guess at what it is, but what exactly does it do and how can I remove it. Thanks in advance, Mike Collins
Technical Details
Message-ID:
<3f99d8fe$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,d6c94c7dab41d4e4,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-24 19:09:12 PST Reply-To: "Mike Collins" <mikec@kr8.co.uk> From: "Mike Collins" <mikec@kr8.co.uk> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Testing Admin rights... Date: Sat, 25 Oct 2003 03:21:22 +0100 Lines: 18 Organization: kr8 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 81.2.78.34 Message-ID: <3f99d8fe$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067047166 81.2.78.34 (24 Oct 2003 18:59:26 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail