RegCreateKeyEx - does it update the returned handle on failure?
Posted
by Permaquid
on Stack Overflow
See other posts from Stack Overflow
or by Permaquid
Published on 2010-03-14T19:22:36Z
Indexed on
2010/03/14
19:25 UTC
Read the original article
Hit count: 185
MSDN documentation seems silent on whether RegCreateKeyEx ever updates the value of the handle referred to by its second-last parameter when it fails. My tests have only shown it not to update this - i.e., I set h = 0 before the call, pass &h to a call to RegCreateKeyEx to open a non-existent key, and see h = 0 after the call. Does anyone know of any situation in which the handle would be changed?
© Stack Overflow or respective owner