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

C / C++ / MFC

 
AnswerRe: Failed to Update system registry Pin
22491715-Mar-10 14:07
22491715-Mar-10 14:07 
QuestionStruct Prob Pin
Herboren8-Mar-10 15:14
Herboren8-Mar-10 15:14 
AnswerRe: Struct Prob Pin
tibiz8-Mar-10 15:31
tibiz8-Mar-10 15:31 
GeneralRe: Struct Prob [modified] Pin
Herboren8-Mar-10 15:38
Herboren8-Mar-10 15:38 
QuestionGetting rid of security questions when accessing registry Vista, Win 7 [modified] Pin
tibiz8-Mar-10 15:03
tibiz8-Mar-10 15:03 
AnswerRe: Getting rid of security questions when accessing registry Vista, Win 7 Pin
Chris Losinger8-Mar-10 16:02
professionalChris Losinger8-Mar-10 16:02 
GeneralRe: Getting rid of security questions when accessing registry Vista, Win 7 Pin
tibiz8-Mar-10 23:34
tibiz8-Mar-10 23:34 
AnswerRe: Getting rid of security questions when accessing registry Vista, Win 7 Pin
Iain Clarke, Warrior Programmer8-Mar-10 21:47
Iain Clarke, Warrior Programmer8-Mar-10 21:47 
Well, the UAC stuff is there SPECIFICALLY to make sure a user gives permission for such activities.

Let's assume that your application DoWonderfulThings.exe does something, erm, wonderful. Let's also assume that you have a backdoor to bypass UAC, so wonderful things can happen a lot. eg, an API called I_Am_Wonderful ().

Let's also assume that I write an application called DoEvilStuff. What's to stop me telling lies (I am evil, after all) and also using the I_Am_Wonderful () API?

This sort of control rightly belongs to the user - not to application developers who can't be trusted.

If all you are doing is checking if a registry value is already there, open the key with read access, not read and write. If you want to write there, then open the key again with write access, and cope with the warnings. This sort of thing should be done at setup time anyway. Or you could install a service that sits quietly consuming negligible resources, just to act as a background actor for you. Or... But all this stuff should require permission from the user... Did you pay for their machine? Didn't think so.

I'm probably a heretic, but I *like* UAC. It forces software writers to shape up, or look bad. My only regret is that it didn't exist earlier. I started 32 bit development and immediately started using HKLM/HKCU properly, and have very rarely hit any security issues.

Iain.

ps, rant over...
I have now moved to Sweden for love (awwww).

GeneralRe: Getting rid of security questions when accessing registry Vista, Win 7 Pin
tibiz8-Mar-10 23:31
tibiz8-Mar-10 23:31 
GeneralRe: Getting rid of security questions when accessing registry Vista, Win 7 Pin
Mohan Ramachandra9-Mar-10 1:21
Mohan Ramachandra9-Mar-10 1:21 
GeneralRe: Getting rid of security questions when accessing registry Vista, Win 7 Pin
tibiz9-Mar-10 1:43
tibiz9-Mar-10 1:43 
GeneralRe: Getting rid of security questions when accessing registry Vista, Win 7 Pin
Mohan Ramachandra9-Mar-10 2:18
Mohan Ramachandra9-Mar-10 2:18 
GeneralRe: Getting rid of security questions when accessing registry Vista, Win 7 Pin
tibiz9-Mar-10 8:50
tibiz9-Mar-10 8:50 
GeneralRe: Getting rid of security questions when accessing registry Vista, Win 7 Pin
Mohan Ramachandra9-Mar-10 17:59
Mohan Ramachandra9-Mar-10 17:59 
QuestionCan't compile any code with Dev C++. Pin
James_7228-Mar-10 11:31
James_7228-Mar-10 11:31 
AnswerRe: Can't compile any code with Dev C++. Pin
Luc Pattyn8-Mar-10 12:40
sitebuilderLuc Pattyn8-Mar-10 12:40 
AnswerRe: Can't compile any code with Dev C++. Pin
Herboren8-Mar-10 15:40
Herboren8-Mar-10 15:40 
QuestionInitializer lists, default constructors and references Pin
CString(0xcccccccc)8-Mar-10 8:52
CString(0xcccccccc)8-Mar-10 8:52 
AnswerRe: Initializer lists, default constructors and references Pin
Stuart Dootson8-Mar-10 9:01
professionalStuart Dootson8-Mar-10 9:01 
AnswerRe: Initializer lists, default constructors and references Pin
Graham Breach8-Mar-10 9:05
Graham Breach8-Mar-10 9:05 
GeneralRe: Initializer lists, default constructors and references Pin
CPallini8-Mar-10 9:23
mveCPallini8-Mar-10 9:23 
GeneralRe: Initializer lists, default constructors and references Pin
Tim Craig8-Mar-10 10:06
Tim Craig8-Mar-10 10:06 
GeneralRe: Initializer lists, default constructors and references Pin
Graham Breach8-Mar-10 10:19
Graham Breach8-Mar-10 10:19 
GeneralRe: Initializer lists, default constructors and references Pin
CPallini8-Mar-10 10:49
mveCPallini8-Mar-10 10:49 
GeneralRe: Initializer lists, default constructors and references Pin
Tim Craig8-Mar-10 13:53
Tim Craig8-Mar-10 13:53 

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.