Click here to Skip to main content
15,914,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to distinguish the broad packets or normal packets? Pin
wangningyu22-Aug-12 21:11
wangningyu22-Aug-12 21:11 
QuestionCan AdjustTokenPrivileges elevate the privilege as Administrator? Pin
Falconapollo17-Aug-12 5:39
Falconapollo17-Aug-12 5:39 
Programs under windows need administrator privilege must get user's permission when they start. And they can also run with administrator privilege by right click the EXE and select "Run as Administrator". But, before the EXE start, a message box will show up. It's really disgusting.

Now I want my application to run as the Administrator, and I don't want the popup message box when user click the EXE file.

Now I wonder whether AdjustTokenPrivileges can help me achieve this.

Any one can help me?

modified 18-Aug-12 10:13am.

AnswerRe: What's worong with Google Code? Pin
Richard MacCutchan17-Aug-12 6:55
mveRichard MacCutchan17-Aug-12 6:55 
AnswerRe: Can AdjustTokenPrivileges elevate the privilege as Administrator? Pin
Richard Andrew x6418-Aug-12 6:27
professionalRichard Andrew x6418-Aug-12 6:27 
QuestionC Functions and Macros Pin
roza12317-Aug-12 1:48
roza12317-Aug-12 1:48 
AnswerRe: C Functions and Macros Pin
Richard MacCutchan17-Aug-12 1:55
mveRichard MacCutchan17-Aug-12 1:55 
GeneralRe: C Functions and Macros Pin
roza12317-Aug-12 2:03
roza12317-Aug-12 2:03 
GeneralRe: C Functions and Macros Pin
Richard MacCutchan17-Aug-12 2:22
mveRichard MacCutchan17-Aug-12 2:22 
AnswerRe: C Functions and Macros Pin
Malli_S17-Aug-12 2:41
Malli_S17-Aug-12 2:41 
QuestionRe: C Functions and Macros Pin
David Crow17-Aug-12 2:43
David Crow17-Aug-12 2:43 
AnswerRe: C Functions and Macros Pin
Maximilien17-Aug-12 3:07
Maximilien17-Aug-12 3:07 
GeneralRe: C Functions and Macros Pin
Richard MacCutchan17-Aug-12 4:54
mveRichard MacCutchan17-Aug-12 4:54 
GeneralRe: C Functions and Macros Pin
Albert Holguin17-Aug-12 4:54
professionalAlbert Holguin17-Aug-12 4:54 
AnswerRe: C Functions and Macros Pin
Software_Developer17-Aug-12 5:45
Software_Developer17-Aug-12 5:45 
GeneralRe: C Functions and Macros Pin
Maximilien17-Aug-12 5:55
Maximilien17-Aug-12 5:55 
GeneralRe: C Functions and Macros Pin
Software_Developer17-Aug-12 7:13
Software_Developer17-Aug-12 7:13 
GeneralRe: C Functions and Macros Pin
Wes Aday17-Aug-12 6:31
professionalWes Aday17-Aug-12 6:31 
GeneralRe: C Functions and Macros Pin
Software_Developer17-Aug-12 7:10
Software_Developer17-Aug-12 7:10 
QuestionExceptions handler question Pin
ForNow16-Aug-12 3:07
ForNow16-Aug-12 3:07 
AnswerRe: Exceptions handler question Pin
Richard MacCutchan16-Aug-12 6:59
mveRichard MacCutchan16-Aug-12 6:59 
GeneralRe: Exceptions handler question Pin
ForNow17-Aug-12 3:44
ForNow17-Aug-12 3:44 
GeneralRe: Exceptions handler question Pin
Richard MacCutchan17-Aug-12 4:53
mveRichard MacCutchan17-Aug-12 4:53 
GeneralRe: Exceptions handler question Pin
Eugen Podsypalnikov17-Aug-12 5:01
Eugen Podsypalnikov17-Aug-12 5:01 
AnswerRe: Exceptions handler question Pin
JackDingler16-Aug-12 7:59
JackDingler16-Aug-12 7:59 
QuestionCreateInstance(__uuidof(MYClass)); Pin
KeithF16-Aug-12 2:23
KeithF16-Aug-12 2:23 

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.