Refresh API
-
Dear All:-D, I am developing an application for Windows 2000 using MFC VC++ Version 6.0. I need to "refresh" the registry whenever somebody opens the registry using Registry editor. I have done process enumeration to capture the regedit. When ever registry editor opens my program captures this event. After that i need to refresh it. Is there API to refresh the registry. Or any other way out to refresh the registry ? Thankyou. Regards, Rohit :confused:
-
Dear All:-D, I am developing an application for Windows 2000 using MFC VC++ Version 6.0. I need to "refresh" the registry whenever somebody opens the registry using Registry editor. I have done process enumeration to capture the regedit. When ever registry editor opens my program captures this event. After that i need to refresh it. Is there API to refresh the registry. Or any other way out to refresh the registry ? Thankyou. Regards, Rohit :confused:
:confused:
-
Dear All:-D, I am developing an application for Windows 2000 using MFC VC++ Version 6.0. I need to "refresh" the registry whenever somebody opens the registry using Registry editor. I have done process enumeration to capture the regedit. When ever registry editor opens my program captures this event. After that i need to refresh it. Is there API to refresh the registry. Or any other way out to refresh the registry ? Thankyou. Regards, Rohit :confused:
I'm not sure what you mean by "refresh the registry." When a change is made to the registry, it is immediate.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
I'm not sure what you mean by "refresh the registry." When a change is made to the registry, it is immediate.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
Dear DavidCrow, I mean to say that i want to programmitically refresh the registry. I have opened the registry and now i want to refresh the registry from my program. ie. Something like sending command from SendMessage. SendMessage( HWND_BROADCAST, // handle to destination window WM_COMMAND, //message WPARAM wParam, // first message parameter LPARAM lParam // second message parameter ); I donot know what parameters to send WPARAM and LPARAM. I suppose we can do it from SendMessage. Regards, Rohit
-
Dear DavidCrow, I mean to say that i want to programmitically refresh the registry. I have opened the registry and now i want to refresh the registry from my program. ie. Something like sending command from SendMessage. SendMessage( HWND_BROADCAST, // handle to destination window WM_COMMAND, //message WPARAM wParam, // first message parameter LPARAM lParam // second message parameter ); I donot know what parameters to send WPARAM and LPARAM. I suppose we can do it from SendMessage. Regards, Rohit
Once you have Regedit's window handle, try:
SendMessage(hWnd, WM_KEYDOWN, VK_F5, 0);
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
Once you have Regedit's window handle, try:
SendMessage(hWnd, WM_KEYDOWN, VK_F5, 0);
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
Dear DavidCrow, Thanks , i used in SendMessage(WM_KEYDOWN, VK_F5, 0); SendMessage(WM_KEYUP, VK_F5, 0); my MFC application and it worked perfect. ........ Five birds are sitting on a fence. Three of them decide to fly off. How many are left? Answer: 5 Am i correct ?? .......... Regards, Rohit
-
Dear DavidCrow, Thanks , i used in SendMessage(WM_KEYDOWN, VK_F5, 0); SendMessage(WM_KEYUP, VK_F5, 0); my MFC application and it worked perfect. ........ Five birds are sitting on a fence. Three of them decide to fly off. How many are left? Answer: 5 Am i correct ?? .......... Regards, Rohit
-
Insufficient information, needs clarification. Depends on ones interpretation of the information.
Dear AORD, I got the right answer by DavidCrow. Can you please let me know what else you need to know about the question. I hope it is quite clear. Still if you need some more clarification i can send it . Rohit:-D
-
Dear AORD, I got the right answer by DavidCrow. Can you please let me know what else you need to know about the question. I hope it is quite clear. Still if you need some more clarification i can send it . Rohit:-D
-
Sorry I did not make it clear, that my response was regarding the number of birds left on the fence. :)
Dear AORD. Thanks AORD, I thought that my question was not clear. Rohit