From e57ba5d3cdcb8e9f5e7b1f4ef4cbfe9d99c97461 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Sat, 7 Dec 2002 07:23:41 +0000 Subject: [PATCH] * include/winuser.h (AllowSetForegroundWindow, LockSetForegroundWindow) Add prototypes. (ASFW_ANY, LSFW_LOCK, LSFW_UNLOCK) Add defines. Thanks to: Pat Thoyts * lib/winuser.def (AllowSetForegroundWindow, LockSetForegroundWindow): Add stubs. --- winsup/w32api/ChangeLog | 9 +++++++++ winsup/w32api/include/winuser.h | 9 +++++++++ winsup/w32api/lib/user32.def | 2 ++ 3 files changed, 20 insertions(+) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 2985a1ee9..e5a51c7eb 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,12 @@ +2002-12-07 Danny Smith + + * include/winuser.h (AllowSetForegroundWindow, + LockSetForegroundWindow) Add prototypes. + (ASFW_ANY, LSFW_LOCK, LSFW_UNLOCK) Add defines. + Thanks to: Pat Thoyts + * lib/winuser.def (AllowSetForegroundWindow, + LockSetForegroundWindow): Add stubs. + 2002-12-06 Ken Fitlike * include/commctrl.h (TN_GETDISPINFO[AW]): Add defines and diff --git a/winsup/w32api/include/winuser.h b/winsup/w32api/include/winuser.h index 7717efd30..397c2bc48 100644 --- a/winsup/w32api/include/winuser.h +++ b/winsup/w32api/include/winuser.h @@ -1935,6 +1935,11 @@ extern "C" { #define OBJID_CURSOR 0xFFFFFFF7 #define OBJID_ALERT 0xFFFFFFF6 #define OBJID_SOUND 0xFFFFFFF5 +#if(WINVER >= 0x0500) +#define ASFW_ANY ((DWORD)-1) +#define LSFW_LOCK 1 +#define LSFW_UNLOCK 2 +#endif #ifndef RC_INVOKED typedef BOOL(CALLBACK *DLGPROC)(HWND,UINT,WPARAM,LPARAM); @@ -3271,6 +3276,10 @@ int WINAPIV wsprintfA(LPSTR,LPCSTR,...); int WINAPIV wsprintfW(LPWSTR,LPCWSTR,...); int WINAPI wvsprintfA(LPSTR,LPCSTR,va_list arglist); int WINAPI wvsprintfW(LPWSTR,LPCWSTR,va_list arglist); +#if(WINVER >= 0x0500) +BOOL WINAPI AllowSetForegroundWindow(DWORD); +BOOL WINAPI LockSetForegroundWindow(UINT); +#endif #ifdef UNICODE #define EDITWORDBREAKPROC EDITWORDBREAKPROCW diff --git a/winsup/w32api/lib/user32.def b/winsup/w32api/lib/user32.def index 465a912d5..ddd047d96 100644 --- a/winsup/w32api/lib/user32.def +++ b/winsup/w32api/lib/user32.def @@ -3,6 +3,7 @@ EXPORTS ActivateKeyboardLayout@8 AdjustWindowRect@12 AdjustWindowRectEx@16 +AllowSetForegroundWindow@4 AnyPopup@0 AppendMenuA@16 AppendMenuW@16 @@ -384,6 +385,7 @@ LoadMenuIndirectW@4 LoadMenuW@8 LoadStringA@16 LoadStringW@16 +LockSetForegroundWindow@4 LockWindowUpdate@4 LookupIconIdFromDirectory@8 LookupIconIdFromDirectoryEx@20