mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
register ourselved as task manager window to make the RegisterShellHookWindow() call working [thanks to Filip :)]
svn path=/trunk/; revision=14183
This commit is contained in:
parent
a5b6da0234
commit
0412c84cea
1 changed files with 6 additions and 1 deletions
|
@ -99,10 +99,15 @@ LRESULT TaskBar::Init(LPCREATESTRUCT pcs)
|
||||||
|
|
||||||
_next_id = IDC_FIRST_APP;
|
_next_id = IDC_FIRST_APP;
|
||||||
|
|
||||||
DynamicFct<BOOL (WINAPI*)(HWND hwnd)> RegisterShellHookWindow(TEXT("user32"), "RegisterShellHookWindow");
|
// register ourselved as task manager window to make the following call to RegisterShellHookWindow working
|
||||||
|
DynamicFct<BOOL (WINAPI*)(HWND hwnd)> SetTaskmanWindow(TEXT("user32"), "SetTaskmanWindow");
|
||||||
|
if (SetTaskmanWindow)
|
||||||
|
(*SetTaskmanWindow)(_hwnd);
|
||||||
|
|
||||||
|
DynamicFct<BOOL (WINAPI*)(HWND hwnd)> RegisterShellHookWindow(TEXT("user32"), "RegisterShellHookWindow");
|
||||||
if (RegisterShellHookWindow) {
|
if (RegisterShellHookWindow) {
|
||||||
LOG(TEXT("Using shell hooks for notification of shell events."));
|
LOG(TEXT("Using shell hooks for notification of shell events."));
|
||||||
|
|
||||||
(*RegisterShellHookWindow)(_hwnd);
|
(*RegisterShellHookWindow)(_hwnd);
|
||||||
} else {
|
} else {
|
||||||
LOG(TEXT("Shell hooks not available."));
|
LOG(TEXT("Shell hooks not available."));
|
||||||
|
|
Loading…
Reference in a new issue