Click here to Skip to main content
15,891,943 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: resource editor Pin
Derek Waters21-Nov-01 13:11
Derek Waters21-Nov-01 13:11 
GeneralIE Printing Pin
14-Nov-01 7:01
suss14-Nov-01 7:01 
GeneralCheck Admin Rights of other NT account Pin
Johannes Fischer12-Nov-01 21:42
Johannes Fischer12-Nov-01 21:42 
GeneralRe: Check Admin Rights of other NT account Pin
Mats Isakson13-Nov-01 7:34
Mats Isakson13-Nov-01 7:34 
GeneralRe: Check Admin Rights of other NT account Pin
Lim Bio Liong14-Dec-01 1:13
Lim Bio Liong14-Dec-01 1:13 
GeneralRe: Check Admin Rights of other NT account Pin
Johannes Fischer17-Dec-01 0:34
Johannes Fischer17-Dec-01 0:34 
GeneralRe: Check Admin Rights of other NT account Pin
Lim Bio Liong17-Dec-01 0:53
Lim Bio Liong17-Dec-01 0:53 
GeneralRe: Check Admin Rights of other NT account Pin
Lim Bio Liong18-Dec-01 0:01
Lim Bio Liong18-Dec-01 0:01 
Hello Johannes,

I have another suggestion for you. There are three other functions that you can use : NetLocalGroupEnum(), LookupAccountName() and NetLocalGroupGetMembers().

1. The NetLocalGroupEnum() API retrieves information about each local group account on a target machine. It returns the group information in an array of LOCALGROUP_INFO_0 structs.

2. You can then iterate through this array and call LookupAccountName() on each group name. You will be returned an SID for that group account.

3. Now, the important part of this suggestion is the fact that NT uses a constant SID value for some well-known accounts like EVERYONE or WORLD. I'm very sure that the "Administrators" group account is also one of these well-known Group Accounts.

4. The SID string for the "Administrators" group should be "S-1-5-32-544" on all NT systems. Please verify this, Johannes, before using my suggestion.

5. Now, once you have found the "Administrators" Group Account, call NetLocalGroupGetMembers() to get an array of LOCALGROUP_MEMBERS_INFO_1 structs. Each element of the array will contain information on the User Accounts that are part of the given Group Account name.

6. You can use this method to obtain the list of User Accounts which are part of the "Administrators" Group Account on a machine. The wonderful thing about these APIs is that you can make these queries on any machine not just the local machine.

7. I have previously written an article in CodeProject with sample code and demo program that closely matches the details above. My sample program collects NT Remote and Local Group and User Account SIDs and store them in an INI and an XML file. You can run my app and collect these SID info at a later time by accessing the information in the output INI file or the XML file.

8. The following is the link to my article :

http://www.codeproject.com/useritems/collectsid.asp

You can also search for it under "Free Programming Tools" section of CodeProject.


9. I'd also like to refer you to a great article by Mark Russinovich (of SysInternals) where he gave a very good introduction to WinNT Security :

http://www.winntmag.com/Articles/Index.cfm?ArticleID=3143&pg=1

In this article he also mentions some good points about SIDs and the existence of "well-known" or "built-in" SIDs.


10. I hope the above info will help you further, Johannes. Best of luck.


Regards,
Bio.


GeneralTcp vs Unicast Udp Pin
Stephen Caldwell11-Nov-01 12:25
Stephen Caldwell11-Nov-01 12:25 
GeneralCStatic Pin
Mel Stober6-Nov-01 8:49
Mel Stober6-Nov-01 8:49 
QuestionHow do you monitor number of upload and download bit's in realtime? (in dialup, etc) Pin
6-Nov-01 0:22
suss6-Nov-01 0:22 
QuestionHow to send AT commands Pin
yskinny4-Nov-01 20:51
yskinny4-Nov-01 20:51 
GeneralModeless Dialog / Accelerators Pin
Thomas Blenkers3-Nov-01 9:18
Thomas Blenkers3-Nov-01 9:18 
GeneralSkining App in MFC Pin
MaTrIX2k22-Nov-01 9:16
MaTrIX2k22-Nov-01 9:16 
GeneralAuto Hide docking windows Pin
Bart van Haaff2-Nov-01 0:49
Bart van Haaff2-Nov-01 0:49 
GeneralRe: Auto Hide docking windows Pin
Le Ridder Noir2-Nov-01 1:44
Le Ridder Noir2-Nov-01 1:44 
GeneralRe: Auto Hide docking windows Pin
Paul A. Howes2-Nov-01 3:15
Paul A. Howes2-Nov-01 3:15 
Generalvideo conference Pin
yoavadler1-Nov-01 2:30
yoavadler1-Nov-01 2:30 
GeneralRe: video conference Pin
8-Dec-01 20:20
suss8-Dec-01 20:20 
Generalvideo conference Pin
yoavadler1-Nov-01 2:30
yoavadler1-Nov-01 2:30 
GeneralSubspace iteration C++ source codes required Pin
31-Oct-01 18:48
suss31-Oct-01 18:48 
QuestionHow can I tell programaticly what OS is running Pin
SAK31-Oct-01 9:16
SAK31-Oct-01 9:16 
AnswerRe: How can I tell programaticly what OS is running Pin
Nish Nishant31-Oct-01 13:41
sitebuilderNish Nishant31-Oct-01 13:41 
AnswerRe: How can I tell programaticly what OS is running Pin
Michael Martin31-Oct-01 14:37
professionalMichael Martin31-Oct-01 14:37 
AnswerRe: How can I tell programaticly what OS is running Pin
TomKat14-Mar-03 15:46
TomKat14-Mar-03 15:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.