mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
* fix a few msvc compilation errors (MS powercfg.h does not use include guards)
svn path=/trunk/; revision=22996
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
#include "resource.h"
|
||||
#include "powercfg.h"
|
||||
#include "powrprof.h"
|
||||
|
||||
BOOLEAN Ala_InitData(HWND);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
|
||||
#include "resource.h"
|
||||
#include "powercfg.h"
|
||||
#include "powrprof.h"
|
||||
|
||||
#define NUM_APPLETS (1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user