![]() You can also accomplish many of these same tasks in the Services node in Server Explorer or by using the ServiceController class. ![]() You can then use the Services Control Manager to start, stop, pause, resume, and configure your service. ![]() Commands that can be sent to a service include starting, pausing, resuming, and stopping the service you can also execute custom commands.Īfter you create and build the application, you can install it by running the command-line utility InstallUtil.exe and passing the path to the service's executable file. You create your service as a Microsoft Visual Studio project, defining code within it that controls what commands can be sent to the service and what actions should be taken when those commands are received. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data. For example, suppose you want to monitor performance counter data and react to threshold values. You can easily create services by creating an application that is installed as a service. For more information about services and Windows sessions, see the Windows SDK documentation. You can also run services in the security context of a specific user account that is different from the logged-on user or the default computer account. These features make services ideal for use on a server or whenever you need long-running functionality that does not interfere with other users who are working on the same computer. These services can be automatically started when the computer boots, can be paused and restarted, and do not show any user interface. Microsoft Windows services, formerly known as NT services, enable you to create long-running executable applications that run in their own Windows sessions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |