Article View: borland.public.cppbuilder.nativeapi
Article #8683Re: Getting admistrator priviliges temporarily
From: Remy Lebeau (TeamB)
Date: Sun, 26 Sep 2004 11:13
Date: Sun, 26 Sep 2004 11:13
21 lines
1664 bytes
1664 bytes
"Fatih Ekinci" <fekinci42@ttnet.net.tr> wrote in message news:41566608@newsgroups.borland.com... > I need getting admistrator priviliges temporarily in order > to change a registry key value under HKEY_LOCAL_MACHINE You can't assign admin rights programmably. That would be a serious security breach if programs could arbitrarily give themselves admin rights whenever they wanted to. > after starting a computer in user mode. Using following code, > I can manage it in Windows XP, but it fails in Windows 2000. Why not just use REGEDT32 to adjust the security rights on the Registry key itself to not require admin rights in the first place? Why does your key require admin rights in the first place? Keys underneath the "Software" key don't usually require that. Gambit
Technical Details
Message-ID:
<4156a465$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.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-mailReferences:
<41566608@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f4e17b02ce5b6ff3 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41566608@newsgroups.borland.com> Subject: Re: Getting admistrator priviliges temporarily Date: Sun, 26 Sep 2004 04:13:53 -0700 Lines: 23 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: <4156a465$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096197221 68.69.17.41 (26 Sep 2004 04:13:41 -0700) Path: arc1-ca.pugleaf.net!g2news1.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