So let me break it down,

Need: I need to programatically install SSL Certs in IIS 5.0 on
Windows 2000.
Result: Not possible via ADSI due to schema type mismatch issue

Found IIS Admin Base Object:
I have found http://support.microsoft.com/?id=313624#8 (HOW TO:
Programmatically Install SSL Certificates for Internet Information
Server (IIS)) which provides a c example.

I would like to wrap this functionality in C# so I don't have to
compile a binary and ship with my installer.

I need to generate a type library so VS.NET can create a primary
interop assembly. So the process as I understand is to:

1) get the iadmw.idl file
2) run the midl compiler to generate the type library
3) import the type library using .net tblimp.exe tool to generate
interop assembly.

The problem is I cannot locate the iadmw.idl file anywhere. I have
the most recent Platform SDK installed with all the options and I have
iadmw.h which contains the interfaces but no .idl file. I tried using
the midl tool with the iadmw.h file but no luck.

Can some please give me a push to how I can use the IMSAdminBase
interface in C#?

Thanks,
Karl McGuinness

Re: How do I use IMSAdminBase (IIS Admin Base Object) in c# by Jerry

Jerry
Tue Dec 30 19:36:04 CST 2003

Use WMI. It's cleaner than interoping with COM in managed code. I hope it's
enough of a push in the right direction, Platform SDK does document IIS' WMI
as far as I know.

If you won't be able to use WMI you need to find that idl (or tlb or dll)
file on the box that has IIS installed. It's definitely not part of PSDK.

Jerry

"Karl McGuinness" <Karl_McGuinness@yahoo.com> wrote in message
news:a87a0882.0312301425.105bf39c@posting.google.com...
> So let me break it down,
>
> Need: I need to programatically install SSL Certs in IIS 5.0 on
> Windows 2000.
> Result: Not possible via ADSI due to schema type mismatch issue
>
> Found IIS Admin Base Object:
> I have found http://support.microsoft.com/?id=313624#8 (HOW TO:
> Programmatically Install SSL Certificates for Internet Information
> Server (IIS)) which provides a c example.
>
> I would like to wrap this functionality in C# so I don't have to
> compile a binary and ship with my installer.
>
> I need to generate a type library so VS.NET can create a primary
> interop assembly. So the process as I understand is to:
>
> 1) get the iadmw.idl file
> 2) run the midl compiler to generate the type library
> 3) import the type library using .net tblimp.exe tool to generate
> interop assembly.
>
> The problem is I cannot locate the iadmw.idl file anywhere. I have
> the most recent Platform SDK installed with all the options and I have
> iadmw.h which contains the interfaces but no .idl file. I tried using
> the midl tool with the iadmw.h file but no luck.
>
> Can some please give me a push to how I can use the IMSAdminBase
> interface in C#?
>
> Thanks,
> Karl McGuinness