Due to the fact the UI is only relevant when logged on, I suggest you approach the problem differently:
Create a windows-service that does the logic, and a windows application for the UI.
Interact between these 2 application using file-system or database.
This is a very popular approach that many application use.
Eli Gazit www.softwear.co.il