From: Abe Simpson on
Hi all,

Is it possible to programmatically do things with IIS (such as add virtual
directories) from a classic application written in C++? It was quite easy
with IIS6 and prior, but with IIS7 you seem to need to use .NET classes.

Thanks in advance.

-- Abe

From: Ken Schaefer on
The old ADSI interfaces are deprecated, but you can add them in as an
optional component.

Otherwise, there is a WMI provider that you could invoke from native code.
The last main option is the Powershell provider, but that requires .NET

Cheers
Ken

"Abe Simpson" <abe(a)simpson.com> wrote in message
news:uscTbm2JLHA.3732(a)TK2MSFTNGP02.phx.gbl...
> Hi all,
>
> Is it possible to programmatically do things with IIS (such as add virtual
> directories) from a classic application written in C++? It was quite easy
> with IIS6 and prior, but with IIS7 you seem to need to use .NET classes.
>
> Thanks in advance.
>
> -- Abe

From: Abe Simpson on
I just ended up programmatically calling the AppCmd.exe utility that created
the virtual directories for me just fine.

-- Abe



"Ken Schaefer" <kenREMOVE(a)THISadOpenStatic.com> wrote in message
news:u2pYdtMKLHA.4824(a)TK2MSFTNGP05.phx.gbl...
> The old ADSI interfaces are deprecated, but you can add them in as an
> optional component.
>
> Otherwise, there is a WMI provider that you could invoke from native code.
> The last main option is the Powershell provider, but that requires .NET
>
> Cheers
> Ken
>
> "Abe Simpson" <abe(a)simpson.com> wrote in message
> news:uscTbm2JLHA.3732(a)TK2MSFTNGP02.phx.gbl...
>> Hi all,
>>
>> Is it possible to programmatically do things with IIS (such as add
>> virtual directories) from a classic application written in C++? It was
>> quite easy with IIS6 and prior, but with IIS7 you seem to need to use
>> .NET classes.
>>
>> Thanks in advance.
>>
>> -- Abe
>