Bogey,
You could use the MIDL compiler and compile the IDL file into a type
library, and then use TLBIMP to import the definition. However, I think
doing it by hand is a better idea. These definitions look pretty simple, so
I would recommend creating them by hand as well.
You might want to check out the section of the MSDN documentation titled
"Exposing COM Components to the .NET Framework ", located at:
http://msdn2.microsoft.com/en-us/library/z6tx9dw3(VS.80).aspx
To help you with creating the definitions of the interfaces in code.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
>I am trying to implement the interfaces (well, actually create the COM
> Interop interface definitions first), but am unsure how to create the
[quoted text clipped - 9 lines]
> IInternetSecurityManagerEx2 seems to only be defined on MSDN and I
> can't find the C# code for the interface definition...
Bogey - 14 Nov 2007 21:34 GMT
Trouble with the interfaces I'm particularly interested in, is that
running MIDL on UrlMon.IDL does not generate a TLB (even using the TLB
option). I was hoping for a less manual approach.
I had already Google'd that reference you mentioned, but thanks
nonetheless.
There's also the problem that I can't even find the documentation (or
the GUID) for IInternetSecurityManagerEx2. In the online docs, it
talks about using SID_IInternetSecurityManagerEx2 in QueryService, but
I can't actually find a definition for that constant.
tonyB.
On Nov 13, 6:40 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> You could use the MIDL compiler and compile the IDL file into a type
> library, and then use TLBIMP to import the definition. However, I think
> doing it by hand is a better idea. These definitions look pretty simple, so
> I would recommend creating them by hand as well.
Bogey - 14 Nov 2007 21:34 GMT
Trouble with the interfaces I'm particularly interested in, is that
running MIDL on UrlMon.IDL does not generate a TLB (even using the TLB
option). I was hoping for a less manual approach.
I had already Google'd that reference you mentioned, but thanks
nonetheless.
There's also the problem that I can't even find the documentation (or
the GUID) for IInternetSecurityManagerEx2. In the online docs, it
talks about using SID_IInternetSecurityManagerEx2 in QueryService, but
I can't actually find a definition for that constant.
tonyB.
On Nov 13, 6:40 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> You could use the MIDL compiler and compile the IDL file into a type
> library, and then use TLBIMP to import the definition. However, I think
> doing it by hand is a better idea. These definitions look pretty simple, so
> I would recommend creating them by hand as well.
Bogey - 14 Nov 2007 22:07 GMT
Trouble with the interfaces I'm particularly interested in, is that
running MIDL on UrlMon.IDL does not generate a TLB (even using the TLB
option). I was hoping for a less manual approach.
I had already Google'd that reference you mentioned, but thanks
nonetheless.
There's also the problem that I can't even find the documentation (or
the GUID) for IInternetSecurityManagerEx2. In the online docs, it
talks about using SID_IInternetSecurityManagerEx2 in QueryService, but
I can't actually find a definition for that constant.
tonyB.
On Nov 13, 6:40 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> You could use the MIDL compiler and compile the IDL file into a type
> library, and then use TLBIMP to import the definition. However, I think
> doing it by hand is a better idea. These definitions look pretty simple, so
> I would recommend creating them by hand as well.