Source code of Windows XP (NT5)
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.

70 lines
1.3 KiB

  1. /*++
  2. Module Name:
  3. apmcrib.h -
  4. Abstract:
  5. prototypes that aren't in driver visible includes...
  6. Author:
  7. Environment:
  8. Kernel mode
  9. Notes:
  10. Revision History:
  11. --*/
  12. //
  13. // NT "private" prototypes cribbed in here. Not for use anywhere
  14. // but in laptop.c
  15. //
  16. NTSTATUS
  17. KeI386AllocateGdtSelectors(
  18. OUT PUSHORT SelectorArray,
  19. IN USHORT NumberOfSelectors
  20. );
  21. VOID
  22. KeI386Call16BitFunction (
  23. IN OUT PCONTEXT Regs
  24. );
  25. NTSTATUS
  26. KeI386ReleaseGdtSelectors(
  27. OUT PUSHORT SelectorArray,
  28. IN USHORT NumberOfSelectors
  29. );
  30. NTSTATUS
  31. KeI386SetGdtSelector (
  32. ULONG Selector,
  33. PKGDTENTRY GdtValue
  34. );
  35. //
  36. // APM constants that really belong somewhere else...
  37. //
  38. #define APM_SYS_STANDBY_REQUEST (0x01)
  39. #define APM_SYS_SUSPEND_REQUEST (0x02)
  40. #define APM_NORMAL_RESUME_NOTICE (0x03)
  41. #define APM_CRITICAL_RESUME_NOTICE (0x04)
  42. #define APM_BATTERY_LOW_NOTICE (0x05)
  43. #define APM_POWER_STATUS_CHANGE_NOTICE (0x06)
  44. #define APM_UPDATE_TIME_EVENT (0x07)
  45. #define APM_CRITICAL_SYSTEM_SUSPEND_REQUEST (0x08)
  46. #define APM_USR_STANDBY_REQUEST (0x09)
  47. #define APM_USR_SUSPEND_REQUEST (0x0a)
  48. #define APM_STANDBY_RESUME_NOTICE (0x0b)
  49. #define APM_CAPABILITIES_CHANGE_NOTICE (0x0c)
  50. #define APM_SET_PROCESSING 4