Problem with ATL service and NetMon component.



I'm developing a library that uses NetMon and it's being used from a ATL
service. When my library calls to CreateNPPInterface it gets blocked.

Steps to reproduce:

0) Download http://piluex.com/pcapservice.zip.
1) Compile the solution
2) Go to debug folder with command line and register the service
pcapservice.exe /service
3) Manually run the service with Services control panel
4) Attach visual studio to the service and put a breakpoint at:

Code Snippet
CreateNPPInterface( hCaptureBlob, IID_IRTC, (void**) &pIRTC);

in MyClass.

5) Run the helper script in /debug (pcapservice.vbs) that calls the "test"
method then the debugger will break at that line, press F10 and that's it,
it'll get blocked.

Thanks

.