Re: Is there a way to determine programatically if my VB6 app was started with administrative privileges?
- From: "MikeD" <nobody@xxxxxxxxxxx>
- Date: Tue, 15 Dec 2009 21:18:06 -0500
"Bill McCarthy" <bill@xxxxxxxxxxxxx> wrote in message news:uo5Hx6efKHA.1596@xxxxxxxxxxxxxxxxxxxxxxx
Hi Sarah,
"Sarah M. Weinberger" <mweinberger@xxxxxxxxxxx> wrote in message news:#TMrxyafKHA.6000@xxxxxxxxxxxxxxxxxxxxxxxHi,
I do not want to force admin mode on my application by tweaking the manifest, as admin mode most of the time is not required. How can I determine programatically if a user started the app via the "Run as Administrator" or just regularly. Basically, is it possible to determine if the application is in admin mode? The result of that would determine what action to take.
Thanks.
I think the best course of action would be to include a manifest that sets your app to run as administrator.
No, I don't agree with that at all. Microsoft is going to great lengths to PREVENT apps from running with admin rights. Sure, they have to provide ways to circumvent that, but all new development should be written to not require admin rights at all (with obvious exceptions for apps intended to only be run by admins).
--
Mike
.
- Follow-Ups:
- References:
- Prev by Date: Re: Across OS Communication...Possible?
- Next by Date: Re: Archiving
- Previous by thread: Re: Is there a way to determine programatically if my VB6 app was started with administrative privileges?
- Next by thread: Re: Is there a way to determine programatically if my VB6 app was started with administrative privileges?
- Index(es):
Relevant Pages
|