April 2003
Intermediate to advanced
1040 pages
25h 22m
English
When you start a Windows service, you can also pass startup parameters to the service.
In this exercise, I'll create a new Windows service named OrderServiceEx. This Windows service is almost same as OrderService, which was created in Step-by-Step 6.1. The only difference is that OrderServiceEx accepts the value of the NotifyFilter property and the Path property of the FileSystemWatcher component at the time of starting the Windows service.
The startup parameters to a Windows service are given the same way as command-line arguments are provided to a console application. However, the only difference is that rather than accepting the arguments in the Main() method, ...
Read now
Unlock full access