00047 {
00048
UINT fsWakeMask;
00049
00050
00051
00052
00053
00054
00055
00056
if (fsWakeMaskFilter == 0) {
00057 fsWakeMask = (QS_ALLINPUT | QS_EVENT | QS_ALLPOSTMESSAGE);
00058 }
else {
00059
00060
00061
00062
00063
00064
if (fsWakeMaskFilter & QS_INPUT) {
00065 fsWakeMaskFilter |= (QS_INPUT | QS_EVENT);
00066 }
00067
if (fsWakeMaskFilter & (QS_POSTMESSAGE | QS_TIMER | QS_HOTKEY)) {
00068 fsWakeMaskFilter |= (QS_POSTMESSAGE | QS_TIMER | QS_HOTKEY);
00069 }
00070 fsWakeMask = fsWakeMaskFilter;
00071 }
00072
00073
#ifndef _USERK_
00074
00075
00076
00077
00078
00079
00080
if (wMsgFilterMax == 0) {
00081
return fsWakeMask;
00082 }
00083
#endif
00084
00085
00086
00087
00088
00089
00090
if (wMsgFilterMin == 0 && wMsgFilterMax == ((
UINT)-1)) {
00091
return fsWakeMask;
00092 }
00093
00094
00095
00096
00097 fsWakeMask &= ~QS_ALLPOSTMESSAGE;
00098
00099
00100
00101
00102
if ((
CheckMsgFilter(WM_NCMOUSEMOVE, wMsgFilterMin, wMsgFilterMax) ==
FALSE) &&
00103 (
CheckMsgFilter(WM_MOUSEMOVE, wMsgFilterMin, wMsgFilterMax) ==
FALSE)) {
00104 fsWakeMask &= ~QS_MOUSEMOVE;
00105 }
00106
00107
00108
00109
00110
if ((
CheckMsgRange(WM_NCLBUTTONDOWN, WM_NCMBUTTONDBLCLK, wMsgFilterMin,
00111 wMsgFilterMax) ==
FALSE) && (
CheckMsgRange(WM_MOUSEFIRST + 1,
00112 WM_MOUSELAST, wMsgFilterMin, wMsgFilterMax) ==
FALSE)) {
00113 fsWakeMask &= ~QS_MOUSEBUTTON;
00114 }
00115
00116
00117
00118
00119
if (
CheckMsgRange(WM_KEYFIRST, WM_KEYLAST,
00120 wMsgFilterMin, wMsgFilterMax) ==
FALSE) {
00121 fsWakeMask &= ~QS_KEY;
00122 }
00123
00124
00125
00126
00127
if (
CheckMsgFilter(WM_PAINT, wMsgFilterMin, wMsgFilterMax) ==
FALSE) {
00128 fsWakeMask &= ~QS_PAINT;
00129 }
00130
00131
00132
00133
00134
if ((
CheckMsgFilter(WM_TIMER, wMsgFilterMin, wMsgFilterMax) ==
FALSE) &&
00135 (
CheckMsgFilter(WM_SYSTIMER,
00136 wMsgFilterMin, wMsgFilterMax) ==
FALSE)) {
00137 fsWakeMask &= ~QS_TIMER;
00138 }
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
if (wMsgFilterMin == WM_QUEUESYNC) {
00149 fsWakeMask |= (QS_INPUT | QS_EVENT);
00150 }
00151
00152
return fsWakeMask;
00153 }