By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,824 Members | 2,410 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,824 IT Pros & Developers. It's quick & easy.

RegGetKeySecurity failing with error 14

P: 52
Hi,
I'm trying to copy registry key FROM HKLM\Software\Wow6432Node\XYZ TO HKLM\Software\XYZ using ShCopyKey() APIs. However security permissions are not copied on to new destination. I'm trying to use RegGetKeySecurity/RegSetKeySecurity to achieve this.

But RegGetKeySecurity()..if failing always with Error=14(ERROR_OUTOFMEMORY). Ensure that correct arguments passed to RegGetKeySecurity(). What might be going wrong here.? Any tips please.
Dec 9 '10 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
Some of the function arguments are pointers. Do you have a correct addresss in thiose pointers?

You might post a code snippet.
Dec 9 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.