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.

68 lines
1.2 KiB

  1. #include "shellpch.h"
  2. #pragma hdrstop
  3. #include <powrprof.h>
  4. BOOLEAN WINAPI SetSuspendState(
  5. BOOLEAN bHibernate,
  6. BOOLEAN bForce,
  7. BOOLEAN bWakeupEventsDisabled
  8. )
  9. {
  10. return FALSE;
  11. }
  12. BOOLEAN WINAPI IsPwrHibernateAllowed()
  13. {
  14. return FALSE;
  15. }
  16. BOOLEAN WINAPI IsPwrSuspendAllowed()
  17. {
  18. return FALSE;
  19. }
  20. BOOLEAN WINAPI IsPwrShutdownAllowed()
  21. {
  22. return FALSE;
  23. }
  24. BOOLEAN WINAPI GetActivePwrScheme(
  25. PUINT puiID
  26. )
  27. {
  28. return FALSE;
  29. }
  30. BOOLEAN WINAPI SetActivePwrScheme(
  31. UINT uiID,
  32. PGLOBAL_POWER_POLICY pgpp,
  33. PPOWER_POLICY ppp
  34. )
  35. {
  36. return FALSE;
  37. }
  38. BOOLEAN WINAPI ReadPwrScheme(
  39. UINT uiID,
  40. PPOWER_POLICY ppp
  41. )
  42. {
  43. return FALSE;
  44. }
  45. //
  46. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  47. //
  48. DEFINE_PROCNAME_ENTRIES(powrprof)
  49. {
  50. DLPENTRY(GetActivePwrScheme)
  51. DLPENTRY(IsPwrHibernateAllowed)
  52. DLPENTRY(IsPwrShutdownAllowed)
  53. DLPENTRY(IsPwrSuspendAllowed)
  54. DLPENTRY(ReadPwrScheme)
  55. DLPENTRY(SetActivePwrScheme)
  56. DLPENTRY(SetSuspendState)
  57. };
  58. DEFINE_PROCNAME_MAP(powrprof)