From 15f84271e8eb47a035ad572fb3db81171f354839 Mon Sep 17 00:00:00 2001 From: jaanttil Date: Mon, 12 Dec 2011 14:14:15 +0200 Subject: Fixed CeTest remotelib build for WinCE 5. WinCE 5 does not have PPN_POWERBUTTONPRESSED but PPN_SUSPENDKEYPRESSED. Newer WinCE version have both, but PPN_POWERBUTTONPRESSED is defined to same as PPN_SUSPENKEYPRESSED, that's why it is safe to use PPN_SUSPENKEYPRESSED in all WinCE versions. Change-Id: Ida0604f86330c3e833a1ad41a88db55aa6a625fa Reviewed-by: Rohan McGovern --- tools/qtestlib/wince/remotelib/commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qtestlib/wince/remotelib/commands.cpp b/tools/qtestlib/wince/remotelib/commands.cpp index 38bfade..d80aa05 100644 --- a/tools/qtestlib/wince/remotelib/commands.cpp +++ b/tools/qtestlib/wince/remotelib/commands.cpp @@ -202,7 +202,7 @@ int qRemotePowerButton(DWORD, BYTE*, DWORD*, BYTE**, IRAPIStream* stream) //PPN_OEMBASE Greater than or equal to 0x10000 //You can define higher values, such as 0x10001, 0x10002, and so on. // Reserved. Set dwData to zero (0). - returnValue = PowerPolicyNotify(PPN_POWERBUTTONPRESSED, 0); + returnValue = PowerPolicyNotify(PPN_SUSPENDKEYPRESSED, 0); if (S_OK != stream->Write(&returnValue, sizeof(returnValue), &bytesRead)) return -3; -- cgit v0.12