Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: General » microsoft.public.windows.msi
Thread: Enumerating websites with ADSI and C++

HTVi
TV Discussion Newsgroups

Enumerating websites with ADSI and C++
Andrew 10/22/2008 12:42:07 PM
Hi All,

I seem to have hit a bit of a stumbling block here, I want to add a new page
into my installer that will display a list of available web sites in IIS. I
have a dll written in C++ it uses ADSI to configure my web application
already, but what I would like to do is add a method that will generate a
list of web sites so I can then display them in a combo.

I have found several examples of how to do this with vbscript, c# and java
script. but I can't find one at all with respect to C++. Maybe I'm not
googling it correctly :-)

Has anyone done this before or have a link I can go to to see how it's done?

I can get the root object of IIS using the follwing code:

ADsGetObject(L"IIS://localhost/w3svc", IID_IADsContainer,(void**)&pCont)

And persisting the values to the MSI database is easy enough

But I can't see a way of enumerating through the apparent collection of
sites this object holds!?!? and then get the name of the site.

Any help would be greatly appreciated...

Thanks

Andrew

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen