Using COM Interface in .NET

J

Johnathan Doe

Hello group,

I've read as much as I can in the .NET docs without my brain turning
to mush. I've tried looking at Interop and System::Runtime::Interop
(are they the same thing?) and I've been able to import the library
(HNetCfg.dll) into my assembly, but I have no idea how to use the
interfaces.

I'm trying to get access to the XP Internet Connection Firewall API,
which has interfaces like IEnumNetSharingEveryConnection. The problem
is that I've never used COM before so I have no idea what to do
anyway. I only have a conceptual understanding of what COM is.

What do I need to do so I can use this API? (In any language,
preferably VC++.NET but C#.NET, J#.NET or VB.NET will be OK for examples.)

Thanks!
Johnathan from Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top