Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Ask for help: C++ struct Pin
Fired Fish18-Nov-05 18:41
Fired Fish18-Nov-05 18:41 
AnswerRe: Ask for help: C++ struct Pin
toxcct18-Nov-05 23:14
toxcct18-Nov-05 23:14 
AnswerRe: Ask for help: C++ struct Pin
Bob Stanneveld19-Nov-05 7:04
Bob Stanneveld19-Nov-05 7:04 
GeneralRe: Ask for help: C++ struct Pin
chenxiujie19-Nov-05 14:59
chenxiujie19-Nov-05 14:59 
GeneralRe: Ask for help: C++ struct Pin
Bob Stanneveld20-Nov-05 19:15
Bob Stanneveld20-Nov-05 19:15 
QuestionDetermining availability of admin privileges Pin
Chintoo72318-Nov-05 17:20
Chintoo72318-Nov-05 17:20 
AnswerRe: Determining availability of admin privileges Pin
Shog918-Nov-05 18:43
sitebuilderShog918-Nov-05 18:43 
AnswerRe: Determining availability of admin privileges Pin
ThatsAlok20-Nov-05 21:18
ThatsAlok20-Nov-05 21:18 
This is just a work around...
make call to OpenSCManager(..) to determine admin status of User, look at this code :-

OpenSCManager(NULL,NULL,SC_MANAGER_ALL_ACCESS);

if(GetLastError()==ERROR_ACCESS_DENIED)
{
  MessageBox("User Is not Admin");
}
else
{
MessageBox("User is Admin");
}



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
GeneralRe: Determining availability of admin privileges Pin
Blake Miller21-Nov-05 11:04
Blake Miller21-Nov-05 11:04 
GeneralRe: Determining availability of admin privileges Pin
ThatsAlok21-Nov-05 17:23
ThatsAlok21-Nov-05 17:23 
Questioncan't register a dll successfully after a debug build Pin
ewighell18-Nov-05 15:33
ewighell18-Nov-05 15:33 
QuestionAsk for help: about reinterpret_cast Pin
chenxiujie18-Nov-05 14:52
chenxiujie18-Nov-05 14:52 
AnswerRe: Ask for help: about reinterpret_cast Pin
John R. Shaw18-Nov-05 18:33
John R. Shaw18-Nov-05 18:33 
QuestionAsk for help: about singleton class Pin
chenxiujie18-Nov-05 14:50
chenxiujie18-Nov-05 14:50 
AnswerRe: Ask for help: about singleton class Pin
toxcct19-Nov-05 1:14
toxcct19-Nov-05 1:14 
GeneralRe: Ask for help: about singleton class Pin
Bob Stanneveld19-Nov-05 7:12
Bob Stanneveld19-Nov-05 7:12 
AnswerRe: Ask for help: about singleton class Pin
Bob Stanneveld19-Nov-05 7:09
Bob Stanneveld19-Nov-05 7:09 
GeneralRe: Ask for help: about singleton class Pin
chenxiujie19-Nov-05 14:44
chenxiujie19-Nov-05 14:44 
GeneralRe: Ask for help: about singleton class Pin
Bob Stanneveld20-Nov-05 19:11
Bob Stanneveld20-Nov-05 19:11 
Questionrun a console app from MFC or Windows Forms Pin
smargada18-Nov-05 14:46
smargada18-Nov-05 14:46 
AnswerRe: run a console app from MFC or Windows Forms Pin
Gary R. Wheeler20-Nov-05 6:58
Gary R. Wheeler20-Nov-05 6:58 
QuestionMenu Items won't come up gray Pin
BuckBrown18-Nov-05 7:42
BuckBrown18-Nov-05 7:42 
AnswerRe: Menu Items won't come up gray Pin
Maximilien18-Nov-05 7:54
Maximilien18-Nov-05 7:54 
GeneralRe: Menu Items won't come up gray Pin
BuckBrown18-Nov-05 10:24
BuckBrown18-Nov-05 10:24 
QuestionReceiving Msgs from Chat Client Pin
legendaryhwk18-Nov-05 5:40
legendaryhwk18-Nov-05 5:40 

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.