Click here to Skip to main content
15,888,908 members
Home / Discussions / C#
   

C#

 
QuestionTreeview in windows application Pin
Arun kumar Gautam31-Jul-13 0:26
Arun kumar Gautam31-Jul-13 0:26 
AnswerRe: Treeview in windows application Pin
Simon_Whale31-Jul-13 0:46
Simon_Whale31-Jul-13 0:46 
AnswerRe: Treeview in windows application Pin
Abhinav S31-Jul-13 1:12
Abhinav S31-Jul-13 1:12 
QuestionRe: Treeview in windows application Pin
Eddy Vluggen31-Jul-13 3:16
professionalEddy Vluggen31-Jul-13 3:16 
AnswerRe: Treeview in windows application Pin
Arun kumar Gautam31-Jul-13 3:19
Arun kumar Gautam31-Jul-13 3:19 
QuestionProblem with treeview in windows application Pin
Arun kumar Gautam31-Jul-13 0:25
Arun kumar Gautam31-Jul-13 0:25 
QuestionOO Design Pin
KeithF30-Jul-13 22:53
KeithF30-Jul-13 22:53 
QuestionRe: OO Design Pin
Eddy Vluggen31-Jul-13 8:36
professionalEddy Vluggen31-Jul-13 8:36 
AnswerRe: OO Design Pin
KeithF31-Jul-13 21:58
KeithF31-Jul-13 21:58 
Questionfilter interface Pin
Atul Kumar Singh230-Jul-13 19:44
Atul Kumar Singh230-Jul-13 19:44 
AnswerRe: filter interface Pin
Abhinav S30-Jul-13 19:53
Abhinav S30-Jul-13 19:53 
GeneralRe: filter interface Pin
Atul Kumar Singh21-Aug-13 6:35
Atul Kumar Singh21-Aug-13 6:35 
AnswerRe: filter interface Pin
Richard Andrew x641-Aug-13 11:22
professionalRichard Andrew x641-Aug-13 11:22 
QuestionGeneric Report Running Pin
eddieangel30-Jul-13 9:43
eddieangel30-Jul-13 9:43 
AnswerRe: Generic Report Running Pin
Mycroft Holmes30-Jul-13 12:40
professionalMycroft Holmes30-Jul-13 12:40 
GeneralRe: Generic Report Running Pin
eddieangel30-Jul-13 12:49
eddieangel30-Jul-13 12:49 
GeneralRe: Generic Report Running Pin
Mycroft Holmes30-Jul-13 14:20
professionalMycroft Holmes30-Jul-13 14:20 
QuestionHow to monitor and block a registry key change? Pin
turbosupramk330-Jul-13 8:07
turbosupramk330-Jul-13 8:07 
AnswerRe: How to monitor and block a registry key change? Pin
Dave Kreskowiak30-Jul-13 9:27
mveDave Kreskowiak30-Jul-13 9:27 
The short answer is you can't stop it from happening. If the user has the permissions to make the change, then the change will be made.

Having said that, the long answer is it's possible, depending on your requirements.

You could just change the permissions on the key for user in question. But, since it looks like you're trying to block something under KEY_LOCAL_MACHINE, the user will already have admin permissions and can just remove your permissions block and grant him/herself permissions to it again.

The other method is to intercept the API calls for registry access. You would need a library, called Detours, to do this. This library is not cheap if you want 64-bit support! This method is also NOT TRIVIAL! It's extremely complicated to do.

You would have to examine the caller to see what code is making the call to change the registry. You can't just stop all registry access because you'd be stopping the system from modifying critical values in the registry. You have to example not only where the call is being made from but who is running the code making the call! After all, what good is blocking the change from your app code if the user can just open RegEdit and make the change manually?!

GeneralRe: How to monitor and block a registry key change? Pin
turbosupramk331-Jul-13 4:13
turbosupramk331-Jul-13 4:13 
GeneralRe: How to monitor and block a registry key change? Pin
Dave Kreskowiak31-Jul-13 5:58
mveDave Kreskowiak31-Jul-13 5:58 
GeneralRe: How to monitor and block a registry key change? Pin
Eddy Vluggen31-Jul-13 8:39
professionalEddy Vluggen31-Jul-13 8:39 
AnswerRe: How to monitor and block a registry key change? Pin
FIorian Schneidereit30-Jul-13 15:54
FIorian Schneidereit30-Jul-13 15:54 
GeneralRe: How to monitor and block a registry key change? Pin
turbosupramk331-Jul-13 2:41
turbosupramk331-Jul-13 2:41 
QuestionProblem in creating Report Pin
Arun kumar Gautam30-Jul-13 3:32
Arun kumar Gautam30-Jul-13 3:32 

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.