NSIS has a function that does just that,
http://nsis.sourceforge.net/IsUserAdminSee source code at,
http://tinyurl.com/jqopcHope this helps,
-Boris
--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
[hidden email]
CONFIDENTIALITY NOTICE
This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.
Thank you.
-----Original Message-----
From: Mark Pirogovsky [mailto:
[hidden email]]
Sent: Wednesday, May 03, 2006 8:11 AM
To:
[hidden email]
Subject: How to determine if the user has administrator privileges ?
Hello Everybody,
There are ways to find out if the current user has administrator
privileges on the Win32 box. Many windows programs do that. I wonder
if there is an easy way to do this from inside the VW, before I start
compiling C code into win32 EXE or DLL?
TIA,
--Mark Pirogovsky
some refs:
http://vcfaq.mvps.org/sdk/21.htmhttp://support.microsoft.com/kb/q118626/