* fix a few msvc compilation errors (MS powercfg.h does not use include guards)

svn path=/trunk/; revision=22996
This commit is contained in:
Johannes Anderwald
2006-07-10 13:47:11 +00:00
parent 71b51f58d6
commit c9130e29e7
4 changed files with 10 additions and 6 deletions
+5 -3
View File
@@ -9,6 +9,10 @@
* Martin Rottensteiner
*/
//#ifndef NSTATUS
//typedef long NTSTATUS;
//#endif
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include <windows.h>
@@ -16,7 +20,6 @@
#include <cpl.h>
#include "resource.h"
#include "powercfg.h"
#include "powrprof.h"
HWND hAdv=0;
@@ -109,7 +112,7 @@ static BOOLEAN IsBatteryUsed()
{
SYSTEM_BATTERY_STATE sbs;
if (CallNtPowerInformation(SystemBatteryState,NULL, (ULONG)NULL, &sbs, sizeof(SYSTEM_BATTERY_STATE)) == STATUS_SUCCESS)
if (CallNtPowerInformation(SystemBatteryState,NULL, (ULONG)0, &sbs, sizeof(SYSTEM_BATTERY_STATE)) == STATUS_SUCCESS)
{
if (sbs.BatteryPresent)
{
@@ -119,7 +122,6 @@ static BOOLEAN IsBatteryUsed()
}
return TRUE;
}
return FALSE;
}
return FALSE;
-1
View File
@@ -18,7 +18,6 @@
#include "resource.h"
#include "powercfg.h"
#include "powrprof.h"
BOOLEAN Ala_InitData(HWND);
+5 -1
View File
@@ -9,6 +9,10 @@
* Martin Rottensteiner
*/
//#ifndef NSTATUS
//typedef long NTSTATUS;
//#endif
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include <windows.h>
@@ -19,7 +23,7 @@
#include "resource.h"
#include "powercfg.h"
#include "powrprof.h"
void Hib_InitDialog(HWND);
INT_PTR Hib_SaveData(HWND);
-1
View File
@@ -15,7 +15,6 @@
#include "resource.h"
#include "powercfg.h"
#include "powrprof.h"
#define NUM_APPLETS (1)