Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Instantiating Application Objects with ADSI

Keywords:   Instantiating Application Objects ADSI

Question:

Is it possible to instantiate application objects using ADSI?

Using OLE...

dao = objectopen("DAO.DBEngine.35")
ws = dao.CreateWorkspace("JetWorkspace", "admin", "")
db = ws.OpenDatabase("c:\data\access\ea.mdb")
.
.
.
objectclose(db)
objectclose(ws)
objectclose(dao)
I saw code to look inside an Exchange 5.5 dbase.

Answer:

Microsoft defines ADSI as follows: "Active Directory™ Service Interfaces (ADSI) is a set of COM interfaces used to access the capabilities of directory services from different network providers in a distributed computing environment, to present a single set of directory service interfaces for managing network resources."

In other words ADSI is a set of objects, properties and methods. Automation (OLE) clients like WinBatch, Java Script or VB Script can instantiate ADSI objects like they instantiate other OLE objects.

The ADSI extender does a lot of the work for you so you don't have to know all of the objects, properties and methods of ADSI to accomplish network administrative tasks. Additionally, the extender makes the functionality of "non-automation" COM interfaces available to you so you can do things you can not do with other Automation (OLE) clients.


Article ID:   W14519
Filename:   Instantiating Application Objects with ADSI.txt