Presentation is loading. Please wait.

Presentation is loading. Please wait.

 Vikram Singh Program Manager Microsoft Corporation PC19.

Similar presentations


Presentation on theme: " Vikram Singh Program Manager Microsoft Corporation PC19."— Presentation transcript:

1  Vikram Singh Program Manager Microsoft Corporation PC19

2

3

4 Performance Responsiveness to the user Consumes resources from foreground applications Boot, Shutdown, Logoff, etc. Reliability Memory leaks System crashes, hangs Dependent application crashes Security Activity may require system privileges Successful attack may compromise entire system Power Consumption Extra disk, CPU utilization Decrease in battery life Prevents idle efficiencies

5 ResourceQuantity File I/O47,286 Copy-on-Write (COW) Pages4,656 (~18MB) Memory Pages (Total)15,967 (~60MB) Registry Operations38,508 Threads367

6

7

8 Windows Service Continuous activity from boot to shutdown Service Control Manager (SCM) programming model Can specify dependency Continuous activity from boot to shutdown Service Control Manager (SCM) programming model Can specify dependency Scheduled Task Short duration action Idle activity Take action on user login Standalone executable or out-of-process COM server Generally execute in user session Short duration action Idle activity Take action on user login Standalone executable or out-of-process COM server Generally execute in user session

9

10

11

12 Service NameDescriptionTrigger Type AELookupSvc Processes application compatibility cache requests for applications as they are launched Custom ETW BDESVC Provides BitLocker client services for user interface and auto-unlocking of data volumes Custom ETW BTHSERV The Bluetooth service supports discovery and association of remote Bluetooth devices. Device SensorsMTPMonitor Monitors MTP (Media Transfer Protocol) sensors (such as a cell phone with a GPS receiver) to communicate sensor data to programs Device TabletInputService Enables Tablet PC pen and ink functionality Device WinDefend Protection against spyware and potentially unwanted software Group Policy

13

14

15 [DllImport(“advapi32.dll”, SetLastError=true)] Public static extern bool ChangeServiceConfig2( IntPtr hService, uint32 dwInfoLevel, IntPtr lpInfo ); Const uint32 SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO = 6 // Example UPS Service protected override void OnStart (string[] args) { IntPtr ServiceHandle; IntPtr RequiredPrivilegesString; // set required privileges string RequiredPrivileges = “SeShutdownPrivilege\0\0”; RequiredPrivilegesString = Marshal.StringToHGlobalAuto(RequiredPrivileges); ChangeServiceConfig2( this.ServiceHandle, SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO, RequiredPrivilegesString ); }

16

17 Task Scheduler (schedule) Task Scheduler (schedule) Power Efficiency Diagnostics (powercfg.exe) Power Efficiency Diagnostics (powercfg.exe) Kernel Detects Idle Condition Launches Task

18

19

20

21

22

23

24 Please fill out your evaluation for this session at: This session will be available as a recording at: www.microsoftpdc.com

25

26 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

27


Download ppt " Vikram Singh Program Manager Microsoft Corporation PC19."

Similar presentations


Ads by Google