-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Win10] Implementation UWP own power management and storage provider #13254
Conversation
e355de6
to
ade567f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to in general.
Fix the unique_ptr<wchar_t[]>
and filename and it's good to go.
ULARGE_INTEGER ULTotal = { { 0 } }; | ||
ULARGE_INTEGER ULTotalFree = { { 0 } }; | ||
|
||
std::unique_ptr<wchar_t> pcBuffer; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
{ | ||
using KODI::PLATFORM::WINDOWS::FromW; | ||
|
||
WCHAR* pcBuffer= NULL; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
#include "powermanagement/windows/Win32PowerSyscall.h" | ||
extern HWND g_hWnd; | ||
#elif defined(TARGET_WINDOWS_STORE) | ||
#include "powermanagement/win10/PowerSyscallWin10.h" |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
using namespace Windows::Devices::Power; | ||
|
||
CPowerSyscall::CPowerSyscall() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
{ | ||
} | ||
|
||
CPowerSyscall::~CPowerSyscall() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -100,7 +157,11 @@ bool CWin32PowerSyscall::CanReboot() | |||
|
|||
int CWin32PowerSyscall::BatteryLevel() | |||
{ | |||
return CWIN32Util::BatteryLevel(); | |||
int result = 0; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
jenkins is happy see BuildMulti-PR-Manually#123 |
let's make things right :)