Has anyone seen RegEnumValue return ERROR_MORE_DATA even though the buffer is adequate? I am recursively calling this function to get info from the registry and it works for 99% of the tree. However, I get this error for some keys.
You should also post code between TGML code tags. Instructions for doing this are directly beneath the edit window you type your Tek-Tips post into.
Also, when you post code it should be the smallest possible amount to produce the problem. This needs to be accompanied with specific execution time values representing the problem. This type of information is necessary to provide context since we can’t observe the problem first hand. We are therefore dependent on you to post relevant information.
>even though the buffer is adequate
after each reading (RegQueryValueEx) of a registry value buffersizeentry is changed to the size of last read number of bytes. So you should set again this value before using it in a new RegQueryValueEx
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.