I need to programmatically add and/or edit IIS 4/5 virtual servers and directories. In VB this is straightforward with the GetObject routine.
I need to work out how to (in Delphi code - not by exec or stuff) do this.
So far I have found the relevant routine
function ADsGetObject(lpszPathName : PWideChar; riid : TGuid; out ppObject) : HRESULT; stdcall;
I need to know how to get to use this to return an object which I can actually use as the VB Getobject routine does.
Double points for a complete working segment of code that creates a complete virtual site.