Click here to Skip to main content
15,911,890 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Windows Administrator account check Pin
Martin Ziacek13-Nov-07 22:25
Martin Ziacek13-Nov-07 22:25 
GeneralRe: Windows Administrator account check Pin
Peter Weyzen13-Nov-07 22:32
Peter Weyzen13-Nov-07 22:32 
GeneralRe: Windows Administrator account check Pin
Martin Ziacek13-Nov-07 22:36
Martin Ziacek13-Nov-07 22:36 
GeneralRe: Windows Administrator account check Pin
Peter Weyzen13-Nov-07 22:45
Peter Weyzen13-Nov-07 22:45 
GeneralRe: Windows Administrator account check Pin
Nelek13-Nov-07 22:50
protectorNelek13-Nov-07 22:50 
GeneralRe: Windows Administrator account check Pin
Martin Ziacek13-Nov-07 22:50
Martin Ziacek13-Nov-07 22:50 
AnswerRe: Windows Administrator account check Pin
Nibu babu thomas13-Nov-07 23:00
Nibu babu thomas13-Nov-07 23:00 
AnswerRe: Windows Administrator account check Pin
David Crow14-Nov-07 3:31
David Crow14-Nov-07 3:31 
Lord_Draconis wrote:
Is there a decent way to check if the user currently logged in is the Administrator??


char szName[64];
GetUserName(szName, sizeof(szName));
strcmp(szName, "Administrator");
I'm not sure how useful this is going to be, however. I would think you'd want to know if the currently logged on user was a member of the Administrator group or not.


"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: Windows Administrator account check Pin
Mark Salsbery14-Nov-07 7:38
Mark Salsbery14-Nov-07 7:38 
Question[SOLVED]Sliding effect for text in MFC Pin
atrok13-Nov-07 21:41
atrok13-Nov-07 21:41 
AnswerRe: Sliding effect for text in MFC Pin
chandu00413-Nov-07 22:08
chandu00413-Nov-07 22:08 
AnswerRe: Sliding effect for text in MFC Pin
Cedric Moonen13-Nov-07 22:16
Cedric Moonen13-Nov-07 22:16 
QuestionData Conversion Byte to Integer Pin
quantimizer13-Nov-07 21:31
quantimizer13-Nov-07 21:31 
AnswerRe: Data Conversion Byte to Integer Pin
Peter Weyzen13-Nov-07 21:54
Peter Weyzen13-Nov-07 21:54 
QuestionRe: Data Conversion Byte to Integer Pin
David Crow14-Nov-07 3:35
David Crow14-Nov-07 3:35 
AnswerRe: Data Conversion Byte to Integer Pin
Peter Weyzen14-Nov-07 10:14
Peter Weyzen14-Nov-07 10:14 
AnswerRe: Data Conversion Byte to Integer Pin
CPallini13-Nov-07 22:19
mveCPallini13-Nov-07 22:19 
GeneralRe: Data Conversion Byte to Integer Pin
quantimizer14-Nov-07 1:26
quantimizer14-Nov-07 1:26 
GeneralRe: Data Conversion Byte to Integer Pin
CPallini14-Nov-07 1:35
mveCPallini14-Nov-07 1:35 
QuestionProblem with CPU Usage Pin
ashishbhatt13-Nov-07 21:26
ashishbhatt13-Nov-07 21:26 
GeneralRe: Problem with CPU Usage Pin
ashishbhatt13-Nov-07 21:58
ashishbhatt13-Nov-07 21:58 
GeneralRe: Problem with CPU Usage Pin
Peter Weyzen13-Nov-07 22:01
Peter Weyzen13-Nov-07 22:01 
GeneralRe: Problem with CPU Usage Pin
ThatsAlok13-Nov-07 23:25
ThatsAlok13-Nov-07 23:25 
GeneralRe: Problem with CPU Usage Pin
ashishbhatt13-Nov-07 23:41
ashishbhatt13-Nov-07 23:41 
GeneralRe: Problem with CPU Usage Pin
ashishbhatt13-Nov-07 23:38
ashishbhatt13-Nov-07 23:38 

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.