Configuring a Service to Interact with the Desktop

By selecting Allow Service To Interact With Desktop, you will be able to send user input, such as keyboard input, dialog boxes, and so on, to the currently logged-on user. So you should only use this configuration to send information to a user who you know is logged on to the computer.

Before we begin I must again reiterate that this should only be done under required circumstances. The following code should never be placed onto a production system.

Getting Started with Creating the Interactive Service

Clear the application event log. To do this, Click Start, click Run, and type eventvwr at the command prompt. Right-click Application Log and choose Clear All Entries. Click No when prompted to save ...

Get Programming Windows® Services with Microsoft® Visual Basic® 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.