Highlighted
Absent Member.
Absent Member.
395 views

[archive] Checking Windows Registry in loop

[Migrated content. Thread originally posted on 01 March 2006]

Does anyone have a good way to check for the existence of a Windows Registry entry in a loop? I am waiting on a 3rd party application to be done with a job and I know that job is done when a certain Windows Registry entry no longer exists.

Currently, this is working on my computer and some others, but is not consistent. I'm just hoping there is a recommended way to do this and it's different than what I've tried.

Thanks,
Rob
0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

RE: [archive] Checking Windows Registry in loop

Instead of using a loop, you can use the API call RegNotifyChangeKeyValue. You can tell it to "block" until a change is detected.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.