I need some method to determine if the code that is executing in a GUI app or as a Windows Service.
I have some code in a dll that will either present a message box (in gui mode) to the user, or write to the event log (in windows service mode). How can I tell which mode the code is executing in?
-Adam T. Courtney
I have some code in a dll that will either present a message box (in gui mode) to the user, or write to the event log (in windows service mode). How can I tell which mode the code is executing in?
-Adam T. Courtney