app and service

Dec 15, 2009 at 3:58 PM

Nice tool.

Looking at the code, I am wondering why you call the VirtualRouterHost library from a service rather than from the VirtualRouterClient application? Why is there an application and separate service?

Coordinator
Dec 16, 2009 at 1:00 PM

The reason it is separated out like this is because the Windows API's for controlling the Virtual Hosted Network (Virtual Wifi) require Administrator rights, and I wanted to make the app work for normal non-Admin users.

This way the Windows Service is installed to run with Admin rights, and the Client App can be run by any user. Then the Client communicates to the Service using WCF to tell it what to do, allowing everything to work even if the user does not have Administrator rights on the box. A side effect of this is you never get the annoying UAC prompt when using the app.