MCAD/MCSD Training Guide (70-320): Developing XML Web Services and Server Components with Visual C#™ .NET and the Microsoft .NET Framework
by Amit Kalani, Priti Kalani
Security for Windows Services
In most aspects, a Windows service is an application like any other. You can use code access security to specify the permissions that this application needs, and control whether those permissions are available by using the .NET Framework configuration tool.
But because Windows services are launched at bootup time, and run for the entire time that the operating system is loaded, you need to pay special attention to the security context in which they run. The security context for a service is initially specified by the Account property of the ServiceProcessInstaller object that was used to place the service on the system (although the user can later change this context by using the Services administrative tool). The ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access