[Qt-interest] [OT] Detect program privileges
Torrin Jones
tjones.job at gmail.com
Mon Feb 2 16:48:25 CET 2009
On Fri, Jan 30, 2009 at 3:46 AM, Serge <mb0 at km.ru> wrote:
> Is it possible in QT program on Windows detect, was it launched using
> "Run as Administrator" option or not?
>
I don't know if you can do this with QT functions, but the link below will
show you how to check if you are in the admin group from the Windows API.
The example code is at the bottom.
http://msdn.microsoft.com/en-us/library/aa376389(VS.85).aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090202/d44958d0/attachment.html
More information about the Qt-interest-old
mailing list