Old 22nd July 2002, 23:44   #1
ralfoide
Junior Member
 
Join Date: Jul 2002
Location: SF, CA
Posts: 2
Post IsAdmin DLL

Hi!

IsAdmin is a DLL for NSIS that determines if the current (impersonated) user has administrator priviledges. Returns 1 to NSIS if it does, 0 or a GetLastErorr number to the caller if not.

Reference: Microsoft Knowledge Base Article - Q118626

Hope this be helpful.
Source code and DSW project in the archive. If you need a compiled DLL, please ask. Free of use, blah blah. That's the kind of DLL I'd like to see in the Contribs of NISI :)

Tested with 1.95... oops need to update now :-)

R/
Attached Files
File Type: zip isadmindll.zip (5.7 KB, 175 views)
ralfoide is offline   Reply With Quote
Old 23rd July 2002, 07:56   #2
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
I'll admit that my IsAdministrator function is buried inside the services control dll I wrote a while back but I just thought I'd post to say that this functionality does exist (yours is still needed though) so don't fret about stuff not being covered, you can usually find a solution somewhere

(FYI http://www.clantpa.co.uk/nsis/x18servicesV0.0.zip was what I was referring to and is mentioned in this forum if you search back)

[edit]I've hosted your file on my archive and added an entry on the downloads page, I'll add a proper page for it soon (it's on the pending list)[/edit]
Sunjammer is offline   Reply With Quote
Old 23rd July 2002, 08:28   #3
ralfoide
Junior Member
 
Join Date: Jul 2002
Location: SF, CA
Posts: 2
Interesting. I had a look at the winamp.com and your archives and I completly missed that x18services DLL -- I'm rather new to NSIS and there's a lot of material around.

Anyway, I may need that functionnality later, so it's good to know where to find it.

Thanks for the hosting.

R/
ralfoide is offline   Reply With Quote
Old 23rd July 2002, 09:39   #4
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
Yeah sorry about that - the comments on the services DLL mostly focused on the services side, the IsAdministrator function was in there because to manipulate services you generally need to be an administrator so it seemed relevant.

You won't find anything on my archive site if you search for administrator because I haven't had time to document my own DLLs that are hosted there, I've prioritised other people's stuff over my own so my services dll literally only gets a link on the download page at the moment.
Sunjammer is offline   Reply With Quote
Old 23rd July 2002, 14:42   #5
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Would it also be possible to check other privileges of the user?

* Administrator
* Power User
* Restricted User
Joost Verburg is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump