|
|
#1 (permalink) |
|
Guest
Posts: n/a
|
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 |
|