Click here to Skip to main content
15,882,721 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to force to kill the specific progress on Win7 X64 Ultimate? Pin
ThatsAlok10-Apr-12 22:23
ThatsAlok10-Apr-12 22:23 
GeneralRe: How to force to kill the specific progress on Win7 X64 Ultimate? Pin
Falconapollo10-Apr-12 22:39
Falconapollo10-Apr-12 22:39 
AnswerRe: How to force to kill the specific progress on Win7 X64 Ultimate? Pin
Randor 11-Apr-12 4:26
professional Randor 11-Apr-12 4:26 
GeneralRe: How to force to kill the specific progress on Win7 X64 Ultimate? Pin
Falconapollo11-Apr-12 4:34
Falconapollo11-Apr-12 4:34 
GeneralRe: How to force to kill the specific progress on Win7 X64 Ultimate? Pin
Nelek12-Apr-12 12:59
protectorNelek12-Apr-12 12:59 
QuestionIsUserAdmin returns false when UAC is enabaled in VS2010 Pin
V K 29-Apr-12 20:46
V K 29-Apr-12 20:46 
AnswerRe: IsUserAdmin returns false when UAC is enabaled in VS2010 Pin
Jochen Arndt9-Apr-12 21:12
professionalJochen Arndt9-Apr-12 21:12 
AnswerRe: IsUserAdmin returns false when UAC is enabaled in VS2010 Pin
jkirkerx11-Apr-12 11:54
professionaljkirkerx11-Apr-12 11:54 
I'm not an expert on the subject, but I do have experience with UAC, Vista + and VS2010.

I spent several months reading up on the topic.

On Vista+, your user account can be made or set to administrator, or the group administrator, just like on Windows XP, in which the setting claims you can make any changes to the system you desire, if your are using the Windows Desktop.

But the Windows Desktop runs in 3 modes, mode 1 is a virtual mode, or a clone of the real windows desktop, mode 2, when you elevate, is the real administrators desktop, and mode 3 is the highest level of windows desktop.

When you ran your code, it said of course you are an administrator, but you have to elevate past the clone desktop, by bringing up the elevate permission dialog in order to actually run code that requires administrative permissions in the real desktop. If you don't elevate, your code will not run, and return an error code 740.

When you set UAC in the manifest to a higher level than AsInvoked, when the program starts, it will invoke the elevate dialog, and elevate the program to the next desktop level.

I suspect your code is old school for Windows XP, and just sort of gives you the actual answer, which is true when running as AsInvoked.

Writing for Vista and Windows 7 is a totally different way of thinking, UAC first, everything else second. You have to get permission from the desktop to make changes to the OS, or keep your programs boundaries in an isolated environment.
Questionhow to achieve the effect like vmware?? Pin
Jing_K9-Apr-12 19:21
Jing_K9-Apr-12 19:21 
AnswerRe: how to achieve the effect like vmware?? Pin
Richard MacCutchan9-Apr-12 21:07
mveRichard MacCutchan9-Apr-12 21:07 
GeneralRe: how to achieve the effect like vmware?? Pin
ThatsAlok10-Apr-12 22:24
ThatsAlok10-Apr-12 22:24 
GeneralRe: how to achieve the effect like vmware?? Pin
Richard MacCutchan11-Apr-12 0:01
mveRichard MacCutchan11-Apr-12 0:01 
Questionsyntax errors? Pin
connect2janu9-Apr-12 13:46
connect2janu9-Apr-12 13:46 
AnswerRe: syntax errors? Pin
David Crow9-Apr-12 17:22
David Crow9-Apr-12 17:22 
AnswerRe: syntax errors? Pin
Malli_S9-Apr-12 18:47
Malli_S9-Apr-12 18:47 
QuestionThe questions we get these days! PinPopular
Erudite_Eric9-Apr-12 6:45
Erudite_Eric9-Apr-12 6:45 
AnswerRe: The questions we get these days! Pin
Chuck O'Toole9-Apr-12 7:59
Chuck O'Toole9-Apr-12 7:59 
GeneralRe: The questions we get these days! Pin
Richard MacCutchan9-Apr-12 8:05
mveRichard MacCutchan9-Apr-12 8:05 
AnswerRe: The questions we get these days! Pin
Chuck O'Toole9-Apr-12 8:10
Chuck O'Toole9-Apr-12 8:10 
GeneralRe: The questions we get these days! Pin
PJ Arends9-Apr-12 9:44
professionalPJ Arends9-Apr-12 9:44 
GeneralRe: The questions we get these days! Pin
jeron110-Apr-12 4:02
jeron110-Apr-12 4:02 
GeneralRe: The questions we get these days! Pin
Arthur F Souza10-Apr-12 9:12
Arthur F Souza10-Apr-12 9:12 
GeneralRe: The questions we get these days! Pin
David Crow10-Apr-12 9:28
David Crow10-Apr-12 9:28 
GeneralRe: The questions we get these days! Pin
Arthur F Souza10-Apr-12 9:31
Arthur F Souza10-Apr-12 9:31 
GeneralRe: The questions we get these days! Pin
Richard Jones10-Apr-12 2:38
Richard Jones10-Apr-12 2: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.