I would like to use Doc-View Architecture along with NT Services in the same EXE.
Plus would like to use the same EXE to install NT Service and remove.

1. Where will I define ServiceMain() ?
2. When I start the service, how will I make sure the App's class functions gets kicked first ?

-Thanks!