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. Registry notification

Registry notification

Scheduled Pinned Locked Moved C / C++ / MFC
windows-admintutorialquestion
3 Posts 2 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.
  • A Offline
    A Offline
    Alexandre GRANVAUD
    wrote on last edited by
    #1

    Hi Cool guys of this messageboards suggested me to use RegNotifyChangeKeyValue() function in order to be informed/notified of registry modifications (what i'm looking at). It works but it only notifies me that something changed but i can't find how to figure exactly WHAT changed ? thanks :)

    R 1 Reply Last reply
    0
    • A Alexandre GRANVAUD

      Hi Cool guys of this messageboards suggested me to use RegNotifyChangeKeyValue() function in order to be informed/notified of registry modifications (what i'm looking at). It works but it only notifies me that something changed but i can't find how to figure exactly WHAT changed ? thanks :)

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      RegNotifyChangeKeyValue() will notify you of any changes that is made to the key that *you* pass the API as the first parameter, hKey.

      Alexandre GRANVAUD wrote:

      It works but it only notifies me that something changed but i can't find how to figure exactly WHAT changed ?

      Use RegQueryValueEx() to get the modified value of the registry key. You could compare it to the old value, and you'd know what's changed.

      Shog on learning VB6: Ah, that would have been VB6. Kicked my ass anyway.
      So easy to learn, just like falling down a flight of stairs...

      A 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        RegNotifyChangeKeyValue() will notify you of any changes that is made to the key that *you* pass the API as the first parameter, hKey.

        Alexandre GRANVAUD wrote:

        It works but it only notifies me that something changed but i can't find how to figure exactly WHAT changed ?

        Use RegQueryValueEx() to get the modified value of the registry key. You could compare it to the old value, and you'd know what's changed.

        Shog on learning VB6: Ah, that would have been VB6. Kicked my ass anyway.
        So easy to learn, just like falling down a flight of stairs...

        A Offline
        A Offline
        Alexandre GRANVAUD
        wrote on last edited by
        #3

        yes but i need to know which subkeys are created in a large tree

        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