Microsoft KB Archive/321367

= INFO: The IADsSecurityDescriptor Interface Is Not Supported on Windows 95 or Windows 98 =

PSS ID Number: 321367

Article Last Modified on 11/18/2003

-

The information in this article applies to:


 * Microsoft Active Directory Services Interface, Microsoft Active Directory Client
 * Microsoft Windows 95
 * Microsoft Windows 98

-



This article was previously published under Q321367



SUMMARY
If you try to run a script that uses the IADsSecurityDescriptor interface from the Active Directory Services Interface (ADSI) library to handle the security descriptor on Windows 95 or Windows 98, you receive the following error message:

Error: Invalid Procedure call or argument.

Code: (0x800a005)

Using the IADsSecurityDescriptor, IADsAccessControlList, and IADsAccessControlEntry interfaces from the ADSI library on Windows 95 or Windows 98 is not supported.



MORE INFORMATION
You can use the IADsSecurityDescriptor, IADsAccessControlList, and IADsAccessControlEntry interfaces from the ADSI library to handle security descriptors on objects. These interfaces convert the binary security descriptor on an object to a more manageable structure. For additional information about security descriptors, visit the following Microsoft Web site:

Security Descriptors

These interfaces perform security descriptor manipulation such as resolving the security identifiers for users from their logon name and domain name, and vice versa. This task depends on lower-level calls such as LookupAccountName and LookupAccountSID, which are not exposed in Windows 95 or Windows 98. Therefore, you can use the ADSI security interfaces only on Microsoft Windows NT 3.1 or later.

Microsoft Visual Basic Scripting Edition Code to Reproduce the Problem
Dim obj Dim sd Set obj = GetObject(&quot;LDAP://domainName/CN=User Name,CN=Users,DC=domain,DC=com&quot;) Set sd = obj.Get(&quot;ntSecurityDescriptor&quot;)

