Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Refresh API

Refresh API

Scheduled Pinned Locked Moved C / C++ / MFC
c++windows-adminjsonquestionannouncement
10 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rohit dhamija 0
    wrote on last edited by
    #1

    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:

    R D 2 Replies Last reply
    0
    • R rohit dhamija 0

      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:

      R Offline
      R Offline
      rohit dhamija 0
      wrote on last edited by
      #2

      :confused:

      1 Reply Last reply
      0
      • R rohit dhamija 0

        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:

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        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?

        R 1 Reply Last reply
        0
        • D David Crow

          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?

          R Offline
          R Offline
          rohit dhamija 0
          wrote on last edited by
          #4

          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

          D 1 Reply Last reply
          0
          • R rohit dhamija 0

            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

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            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?

            R 1 Reply Last reply
            0
            • D David Crow

              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?

              R Offline
              R Offline
              rohit dhamija 0
              wrote on last edited by
              #6

              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

              A 1 Reply Last reply
              0
              • R rohit dhamija 0

                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

                A Offline
                A Offline
                AORD
                wrote on last edited by
                #7

                Insufficient information, needs clarification. Depends on ones interpretation of the information.

                R 1 Reply Last reply
                0
                • A AORD

                  Insufficient information, needs clarification. Depends on ones interpretation of the information.

                  R Offline
                  R Offline
                  rohit dhamija 0
                  wrote on last edited by
                  #8

                  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

                  A 1 Reply Last reply
                  0
                  • R rohit dhamija 0

                    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

                    A Offline
                    A Offline
                    AORD
                    wrote on last edited by
                    #9

                    Sorry I did not make it clear, that my response was regarding the number of birds left on the fence. :)

                    R 1 Reply Last reply
                    0
                    • A AORD

                      Sorry I did not make it clear, that my response was regarding the number of birds left on the fence. :)

                      R Offline
                      R Offline
                      rohit dhamija 0
                      wrote on last edited by
                      #10

                      Dear AORD. Thanks AORD, I thought that my question was not clear. Rohit

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups