Windows Application, Windows NT Service
Version C
Statistics of running processes
-
Functionality:
-
Show statistics about all processes running on the system now and in the past
-
Elements:
- Main window
- ListView control with statistics of processes: name, filename, start time, end time (empty if process is still running), duration time (empty if process is still running)
- 'Refresh' and 'Filter' buttons
- Filter window
- TextBox to specify the name of process as a filter for the list
- TextBox to specify the filename of process as a filter for the list
- two DateTimePicker controls to show only processes which were running in the specified period
- Windows NT service (also called Windows XP service):
- It gets list of all running processes and calls a method from the assembly to store it every 10 seconds
- It doesn't store any data
- Assembly in Global Assembly Cache:
- It stores all data int the file
- Public methods:
- to add information about currently running processes (called from the service)
- to get list of processes according to specified filters (called from the application)
- Installer
- It installs complete solution on user's system (all three elements)
Hints:
- Process class
- Process.Id
- Process.StartInfo
- Process.GetProcesses()
- sn.exe
- [assembly:AssemblyKeyFileAttribute]
- System.Threading.Timer, System.Threading.Thread.Sleep()
- Approximate points:
- windows application: 2.5
- windows NT service: 2.5
- assembly in GAC and using it: 4.0
- installer: 1.0