🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Check if the user is logged as admin...

#10915
From: Boba
Date: Sun, 21 Mar 2004 16:45
27 lines
2202 bytes
"Vladimir Stefanovic" <antivari@ptt.yu> wrote in message
news:405b0eeb@newsgroups.borland.com...
> I tried today to make some accounts on XP.
> If the user hasn't admin rights he cannot even
> manualy edit ODBC connections.

I'd call this behaviour 'by design'.

>
> But the  mistery is that sometimes the user which
> has admin rights CAN change it manualy but the
> SQLDataConfigDataSource() fails ?!.

by 'manualy' you mean system or 3rd party tools?
The SQLConfigDataSource function envokes a lot of
other calls, which are subject to access rite checking
and those may fail causing the function return false.

>
> It happens mainly on the machines where more
> than one OS exists, but I haven't tested that more...

the worse scenario I ever seen was when the call returned
true but nothing happened (it was a single OS PC) - updating
the driver solved the problem. Be careful: some software
may not be happy with these updates.
Boba
Technical Details
Message-ID: <405dc86b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!195.40.0.165.MISMATCH!easynet-monga!easynet.net!proxad.net!62.253.162.219.MISMATCH!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40586203@newsgroups.borland.com> <4059c869@newsgroups.borland.com> <4059dd7d@newsgroups.borland.com> <4059f4b5@newsgroups.borland.com> <4059f971@newsgroups.borland.com> <405b0b96@newsgroups.borland.com> <405b0eeb@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,91576aaf7b7d46ad
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-21 09:09:31 PST
From: "Boba" <Boba@somewhere.world>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40586203@newsgroups.borland.com> <4059c869@newsgroups.borland.com> <4059dd7d@newsgroups.borland.com> <4059f4b5@newsgroups.borland.com> <4059f971@newsgroups.borland.com> <405b0b96@newsgroups.borland.com> <405b0eeb@newsgroups.borland.com>
Subject: Re: Check if the user is logged as admin...
Date: Sun, 21 Mar 2004 10:45:11 -0600
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 208.210.156.169
Message-ID: <405dc86b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079887979 208.210.156.169 (21 Mar 2004 08:52:59 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!195.40.0.165.MISMATCH!easynet-monga!easynet.net!proxad.net!62.253.162.219.MISMATCH!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail