Click here to Skip to main content
15,798,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: status of printer on network............... Pin
ani_ikram16-Oct-08 22:02
ani_ikram16-Oct-08 22:02 
QuestionRe: status of printer on network............... Pin
David Crow17-Oct-08 4:58
David Crow17-Oct-08 4:58 
QuestionRegarding Admin rights user Pin
H4u3216-Oct-08 21:13
H4u3216-Oct-08 21:13 
QuestionRe: Regarding Admin rights user Pin
David Crow17-Oct-08 5:00
David Crow17-Oct-08 5:00 
AnswerRe: Regarding Admin rights user Pin
H4u3217-Oct-08 5:50
H4u3217-Oct-08 5:50 
GeneralRe: Regarding Admin rights user Pin
Michael Dunn17-Oct-08 12:22
sitebuilderMichael Dunn17-Oct-08 12:22 
GeneralRe: Regarding Admin rights user Pin
H4u3217-Oct-08 20:26
H4u3217-Oct-08 20:26 
QuestionFunction to get the local system Administrator Name Pin
Taruni16-Oct-08 19:33
Taruni16-Oct-08 19:33 
Hi
I need to get the name of the local system Administrator (System is in the domain). As that name however appears in the ControlPanel->"UserAccounts" list or ControlPanel->AdministrativeTools->ComputerManagement->LocalUser and Groups->Groups and clicking on "Administrators" Group, I am trying to list out all the users under "Administrators" Group and for this purpose I am using NetLocalGroupGetMembers() and including lmaccess.h file. But I am getting the linker error "error LNK2001: unresolved external symbol _NetLocalGroupGetMembers@32". Doesn't this header file "lmaccess.h" come with Visual Studio?

Using ADSI, I can get the members of an "Administrators" group (local system) , however, that list doesn't include the name of the the local system administrator , who is a member in the domain.

Is there anyother alternative mechanism/function to get the local system Administrator Name?

Thanks in Advance.

Taruni

AnswerRe: Function to get the local system Administrator Name Pin
Naveen16-Oct-08 19:46
Naveen16-Oct-08 19:46 
GeneralRe: Function to get the local system Administrator Name Pin
Taruni16-Oct-08 20:04
Taruni16-Oct-08 20:04 
GeneralRe: Function to get the local system Administrator Name Pin
Naveen16-Oct-08 20:10
Naveen16-Oct-08 20:10 
GeneralRe: Function to get the local system Administrator Name Pin
Taruni16-Oct-08 20:20
Taruni16-Oct-08 20:20 
GeneralRe: Function to get the local system Administrator Name Pin
Naveen16-Oct-08 20:42
Naveen16-Oct-08 20:42 
GeneralRe: Function to get the local system Administrator Name Pin
Taruni16-Oct-08 21:00
Taruni16-Oct-08 21:00 
QuestionRe: Function to get the local system Administrator Name Pin
David Crow17-Oct-08 5:02
David Crow17-Oct-08 5:02 
AnswerRe: Function to get the local system Administrator Name Pin
enhzflep16-Oct-08 19:58
enhzflep16-Oct-08 19:58 
QuestionHow can I remove an item in Combo box's list box ? Pin
SherTeks16-Oct-08 19:18
SherTeks16-Oct-08 19:18 
AnswerRe: How can I remove an item in Combo box's list box ? Pin
AlexAbramov16-Oct-08 20:59
AlexAbramov16-Oct-08 20:59 
QuestionI need help figuring this out please Pin
LilKoopa16-Oct-08 19:05
LilKoopa16-Oct-08 19:05 
AnswerRe: I need help figuring this out please Pin
User 21559716-Oct-08 19:36
User 21559716-Oct-08 19:36 
GeneralRe: I need help figuring this out please Pin
LilKoopa17-Oct-08 8:51
LilKoopa17-Oct-08 8:51 
AnswerRe: I need help figuring this out please Pin
David Crow17-Oct-08 9:52
David Crow17-Oct-08 9:52 
QuestionInterface Design Question Pin
mombawomba16-Oct-08 17:08
mombawomba16-Oct-08 17:08 
AnswerRe: Interface Design Question Pin
Graham Shanks17-Oct-08 0:43
Graham Shanks17-Oct-08 0:43 
QuestionNew to MFC Pin
BobInNJ16-Oct-08 15:51
BobInNJ16-Oct-08 15:51 

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.