RegGetKeySecurity failing with error 14

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sudhivns
    New Member
    • Nov 2007
    • 52

    #1

    RegGetKeySecurity failing with error 14

    Hi,
    I'm trying to copy registry key FROM HKLM\Software\W ow6432Node\XYZ TO HKLM\Software\X YZ using ShCopyKey() APIs. However security permissions are not copied on to new destination. I'm trying to use RegGetKeySecuri ty/RegSetKeySecuri ty to achieve this.

    But RegGetKeySecuri ty()..if failing always with Error=14(ERROR_ OUTOFMEMORY). Ensure that correct arguments passed to RegGetKeySecuri ty(). What might be going wrong here.? Any tips please.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Some of the function arguments are pointers. Do you have a correct addresss in thiose pointers?

    You might post a code snippet.

    Comment

    Working...