Discussion:
what are nf-winreg-regcreatekeyexw's prerequisites?
(too old to reply)
T
2020-04-02 07:01:17 UTC
Permalink
Hi All,

I think I know, but lets start with a blank slate.

What do I need to call before calling

https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regcreatekeyexw

?

Many thanks,
-T
JJ
2020-04-02 08:25:28 UTC
Permalink
Post by T
Hi All,
I think I know, but lets start with a blank slate.
What do I need to call before calling
https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regcreatekeyexw
?
Many thanks,
-T
Valid function argument values.

You don't need to call any other API function in order to be able to call
`RegCreateKeyEx()`.
T
2020-04-02 08:32:42 UTC
Permalink
Post by JJ
Post by T
Hi All,
I think I know, but lets start with a blank slate.
What do I need to call before calling
https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regcreatekeyexw
?
Many thanks,
-T
Valid function argument values.
You don't need to call any other API function in order to be able to call
`RegCreateKeyEx()`.
Uhhhh JJ ...

hKey
A handle to an open registry key.

Where do you suppose that handle came from?

-T
JJ
2020-04-02 15:09:07 UTC
Permalink
Post by T
Post by JJ
Post by T
Hi All,
I think I know, but lets start with a blank slate.
What do I need to call before calling
https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regcreatekeyexw
?
Many thanks,
-T
Valid function argument values.
You don't need to call any other API function in order to be able to call
`RegCreateKeyEx()`.
Uhhhh JJ ...
hKey
A handle to an open registry key.
Where do you suppose that handle came from?
-T
It can be one of the predefined HKEY_xxx constants (already mentioned by
MSDN). However, depending on the current user's access rights, only some of
them may be directly usable, and others will have to be manually opened
first.
T
2020-04-02 22:18:08 UTC
Permalink
Post by JJ
Post by T
Post by JJ
Post by T
Hi All,
I think I know, but lets start with a blank slate.
What do I need to call before calling
https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regcreatekeyexw
?
Many thanks,
-T
Valid function argument values.
You don't need to call any other API function in order to be able to call
`RegCreateKeyEx()`.
Uhhhh JJ ...
hKey
A handle to an open registry key.
Where do you suppose that handle came from?
-T
It can be one of the predefined HKEY_xxx constants (already mentioned by
MSDN). However, depending on the current user's access rights, only some of
them may be directly usable, and others will have to be manually opened
first.
Or from RegOpenKeyEx
JJ
2020-04-03 13:21:59 UTC
Permalink
Post by T
Or from RegOpenKeyEx
If you read the documentation properly, you'll also know that `RegOpenKey()`
and `RegOpenKeyEx()` are not the only functions that can open a registry
key.
T
2020-04-03 21:34:07 UTC
Permalink
Post by JJ
Post by T
Or from RegOpenKeyEx
If you read the documentation properly, you'll also know that `RegOpenKey()`
and `RegOpenKeyEx()` are not the only functions that can open a registry
key.
True

Loading...