BUG: GetSecurityInfo()/SetSecurityInfo() Will Fail with ERROR_INVALID_PARAMETER (217075)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • the operating system: Microsoft Windows NT 4.0 SP4

This article was previously published under Q217075

SYMPTOMS

On Service Pack 4, calling GetSecurityInfo() to retrieve a copy of the security descriptor for a registry key handle will fail with ERROR_INVALID_PARAMETER. This problem occurs only when the registry handle points to HKEY_CURRENT_USER or HKEY_USERS or any subkeys underneath. In addition, calling SetSecurityInfo() on Service Pack 4 to set the security descriptor for a registry key handle will fail with the same error.

RESOLUTION

An application can use the low level access control functions RegGetKeySecurity and RegSetKeySecurity respectively to get around this problem.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. To resolve this problem, install the latest service pack for Microsoft Windows NT 4.0.

Modification Type:MajorLast Reviewed:10/27/2003
Keywords:kbACL kbAPI kbbug kbFAQ kbKernBase kbpending kbSecurity KB217075