The following links take you directly to ADSI code examples:
Binding to a directory object (Automation and (C or C++ Examples).
Get and put methods (Automation example).
Get methods (COM vtable example).
How to create a security descriptor object (VB example).
How to enumerate the discretionary ACL (VB example).
Formal grammar for the SQL queries.
User accounts on an ldap server.
Automation - Retrieving a Property From an ADSI Object
Automation - Browsing a Schema Class Definition
Automation - Adding Users to a Group
Automation - Removing Users From a Group
Automation - Listing Children in a Container
Automation - Enumerating Users in a Group
Automation - Creating a User Object
Automation - Deleting a User Object
Java - Binding to an ADSI Object
COM Vtable Examples - Querying a Namespace
COM Vtable Examples - Setting Properties
COM Vtable Examples - Adding Users to a Group
COM Vtable Examples - Removing Users from a Group
COM Vtable Examples- Enumerating Users in a Group
COM Vtable Examples - Creating a User Object
COM Vtable Examples - Deleting a User Object