Re: Is there a way to determine programatically if my VB6 app was started with administrative privileges?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance





"Bill McCarthy" <bill@xxxxxxxxxxxxx> wrote in message news:uo5Hx6efKHA.1596@xxxxxxxxxxxxxxxxxxxxxxx
Hi Sarah,

"Sarah M. Weinberger" <mweinberger@xxxxxxxxxxx> wrote in message news:#TMrxyafKHA.6000@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

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


.



Relevant Pages

  • Re: new to SBS2003
    ... It's possible that the Access app can be split so the app runs on ... Les Connor [SBS MVP] ... "Frank McCallister" wrote in message ... > Admin mode means that up to two users can Administer the server remotely, ...
    (microsoft.public.windows.server.sbs)
  • Re: Is there a way to determine programatically if my VB6 app was started with administrative privil
    ... 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. ... If the app doesn't require them, then there is no need to see if the user has administrative privileges. ...
    (microsoft.public.vb.general.discussion)
  • Re: Is there a way to determine programatically if my VB6 app was started with administrative privil
    ... 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. ...
    (microsoft.public.vb.general.discussion)
  • Re: SBS 2003 and Terminal Services
    ... SBS 2003 is restricted to only TS in admin mode and can't be changed to app ... You'll need a separate TS server for that. ...
    (microsoft.public.windows.server.sbs)
  • Re: Erunt Question
    ... Go into All Programs and find Erunt. ... programs require admin mode. ... I also tried your suggestion on another program that I have to right ... This program had the check box to "Run As Administrator" ...
    (microsoft.public.windows.vista.performance_maintenance)