Artifact 1cd64e8f9ee17783cf0da809a5b8443c7db8bc7d
- File
src/win32/pbt.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
/***********************************************************************\
* pbt.d *
* *
* Windows API header module *
* *
* Translated from MinGW Windows headers *
* by Stewart Gordon *
* *
* Placed into public domain *
\***********************************************************************/
module win32.pbt;
private import win32.windef;
enum : WPARAM {
PBT_APMQUERYSUSPEND,
PBT_APMQUERYSTANDBY,
PBT_APMQUERYSUSPENDFAILED,
PBT_APMQUERYSTANDBYFAILED,
PBT_APMSUSPEND,
PBT_APMSTANDBY,
PBT_APMRESUMECRITICAL,
PBT_APMRESUMESUSPEND,
PBT_APMRESUMESTANDBY,
PBT_APMBATTERYLOW,
PBT_APMPOWERSTATUSCHANGE,
PBT_APMOEMEVENT // = 11
}
const LPARAM PBTF_APMRESUMEFROMFAILURE = 1;