how to use RegGetValue
how do i use RegGetValue in c++/cli? i need an example cause i want something like
|
RegGetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "SystemRoot", RRF_RT_ANY, NULL, (PVOID)value, (LPDWORD)BufferSize); //SystemRoot string = C:\Windows
|
and i want the string to be displayed in a textBox.
Don't. Use RegGetValueEx.
RegGetValue is an old WIN16 call.
Last edited on
what should i use to get a value from the registry
Use RegGetValueEx.
Carat1 wrote: |
---|
how do i use RegGetValue in c++/cli? |
If you are using
C++/CLI look at the
RegistryKey Class.
https://msdn.microsoft.com/en-us/library/microsoft.win32.registrykey(v=vs.110).aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-2
Topic archived. No new replies allowed.