Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
1.5 KiB

  1. /***************************************************************************
  2. Copyright (c) 2002 Microsoft Corporation
  3. Module Name:
  4. power.h
  5. Abstract:
  6. Power Routines for Smartcard Driver Utility Library
  7. Environment:
  8. Kernel Mode Only
  9. Notes:
  10. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  11. KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  12. IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  13. PURPOSE.
  14. Copyright (c) 2001 Microsoft Corporation. All Rights Reserved.
  15. Revision History:
  16. 05/14/2002 : created
  17. Authors:
  18. Randy Aull
  19. ****************************************************************************/
  20. #ifndef __POWER_H__
  21. #define __POWER_H__
  22. NTSTATUS
  23. ScUtilDevicePower(
  24. PDEVICE_OBJECT DeviceObject,
  25. PIRP Irp
  26. );
  27. NTSTATUS
  28. ScUtilSystemPower(
  29. PDEVICE_OBJECT DeviceObject,
  30. PIRP Irp
  31. );
  32. NTSTATUS
  33. ScUtilSystemPowerCompletion(
  34. PDEVICE_OBJECT DeviceObject,
  35. PIRP Irp,
  36. PVOID Context
  37. );
  38. VOID
  39. ScUtilDeviceRequestCompletion(
  40. PDEVICE_OBJECT DeviceObject,
  41. UCHAR MinorFunction,
  42. POWER_STATE PowerState,
  43. PVOID Context,
  44. PIO_STATUS_BLOCK IoStatus
  45. );
  46. NTSTATUS
  47. ScUtilDevicePowerUpCompletion(
  48. PDEVICE_OBJECT DeviceObject,
  49. PIRP Irp,
  50. PVOID Context
  51. );
  52. #endif