Browse Source

+ added the win16api power management constants

git-svn-id: trunk@31715 -
nickysn 10 years ago
parent
commit
475c24670b
1 changed files with 10 additions and 0 deletions
  1. 10 0
      rtl/win16/win31.pp

+ 10 - 0
rtl/win16/win31.pp

@@ -494,6 +494,16 @@ const
 
   QS_ALLINPUT    = $007f;
 
+{ Power management }
+  WM_POWER = $0048;
+
+{ wParam for WM_POWER window message and DRV_POWER driver notification }
+  PWR_OK             = 1;
+  PWR_FAIL           = (-1);
+  PWR_SUSPENDREQUEST = 1;
+  PWR_SUSPENDRESUME  = 2;
+  PWR_CRITICALRESUME = 3;
+
 function GetFreeSystemResources(SysResource: UINT): UINT; external 'USER';
 
 procedure LogError(err: UINT; lpInfo: FarPointer); external 'KERNEL';