Examining Active Directory Objects

To finish this chapter, you'll build a second ADSI application, this time using the LDAP provider. This utility starts at the top of an Active Directory tree and fills in a tree-view control with all the objects in the tree. Next, as the user selects each individual object in the tree, the utility retrieves information about the object, including its security, and displays it for the user.

Starting the Project

To start this application, start a new standard EXE project in Visual Basic and include a reference to the Active DS Type library, as you did in Figure 12.1. Next, add the Microsoft Common Controls to the project, as shown in Figure 13.1, so that you'll be able to use the Tree View control.

Get Developing Secure Applications with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.