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