Platform SDK: Active Directory, ADSI, and Directory Services

Using ADSI Functions to Bind Directly to an Object

Binding directly to a directory object through ADSI is simple. In languages that support Automation, such as Java or Visual Basic®, use the GetObject function with a fully specified ADsPath. This binds to the object using the current user's logon and security credentials. If you need to bind to an ADSI object using a different user or security credential, use ADsOpenObject instead.