Hi List, Can somebody help me in what is the standard way to query if a key exists in the registry? I try to implement addig new key in regedit. Attila
I can't tell you off the top of my head since it's been a while since I did any Windows work. However, you might check the Installshield site docs for REG functions. They have a bunch that you call to query the registry and are modeled on the MS ones. If I remember correctly MS C has them also - maybe check the MS knowledge base for info on registry functions. There are functions that you can call and they return success or failure. On Saturday 27 December 2003 12:40, Zimler Attila wrote:
Hi List,
Can somebody help me in what is the standard way to query if a key exists in the registry? I try to implement addig new key in regedit.
Attila
Zimler Attila wrote:
Hi List,
Can somebody help me in what is the standard way to query if a key exists in the registry? I try to implement addig new key in regedit.
Attila
.
Hi :) I received a mail which tries to explain how windows do this. Thanks for it. To make things clear - my question is about wine API to use :) Attila
On Sat, 2003-12-27 at 18:59, Zimler Attila wrote:
Hi :) I received a mail which tries to explain how windows do this. Thanks for it. To make things clear - my question is about wine API to use :)
It depends on the location of the code. Inside most dlls use the advapi functions - RegCreateKey can be used to test for the existance of a key I think. Inside ntdll use NtRegCreateKey and so on. Possibly you need to do this in kernel32 as well, I'm not sure....
On December 27, 2003 12:40 pm, Zimler Attila wrote:
Can somebody help me in what is the standard way to query if a key exists in the registry? I try to implement addig new key in regedit.
For that purpose, just use RegOpenKeyEx(): http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/bas... -- Dimi.
participants (4)
-
Brett I. Holcomb -
Dimitrie O. Paun -
Mike Hearn -
Zimler Attila