The information in this article applies to:
SYMPTOMSIn certain cases, the AccessCheck() API fails and GetLastError() returns the message This error message indicates that the security descriptor passed to AccessCheck() was in an invalid format. CAUSEThis is expected behavior for the AccessCheck() function. AccessCheck() was designed for use by programs that create and maintain their own security descriptors. These security descriptors would always have the owner, DACL, and group information. RESOLUTIONIf the security descriptor is indeed valid, you can eliminate the error by ensuring that the security descriptor has been opened for access to the following types of security information: OWNER_SECURITY_INFORMATIONYou can double check the validity of the security descriptor by calling the IsValidSecurityDescriptor() API. Additional query words: 3.10 3.50
Keywords : kbAccCtrl kbKernBase kbWinOS2000 kbSecurity kbDSupport kbGrpKernBase |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |