Skip to content

Commit 3b60a34

Browse files
committed
[ARWINSS]
- Add missing EndTask() implementation. svn path=/branches/arwinss/; revision=64709
1 parent bbeeb44 commit 3b60a34

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

arwinss/client/user32/user32.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
@ stdcall EndDialog(long long)
205205
@ stdcall EndMenu()
206206
@ stdcall EndPaint(long ptr)
207-
@ stub EndTask
207+
@ stdcall EndTask(ptr long long)
208208
@ stub EnterReaderModeHelper
209209
@ stdcall EnumChildWindows(long ptr long)
210210
@ stdcall EnumClipboardFormats(long)

arwinss/client/user32/user_main.c

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,4 +378,27 @@ BOOL WINAPI RegisterUserApiHook(PUSERAPIHOOKINFO puah)
378378
{
379379
TRACE(": stub\n");
380380
return TRUE;
381-
}
381+
}
382+
383+
/*
384+
* @implemented
385+
*/
386+
BOOL
387+
WINAPI
388+
EndTask(
389+
HWND hWnd,
390+
BOOL fShutDown,
391+
BOOL fForce)
392+
{
393+
SendMessageW(hWnd, WM_CLOSE, 0, 0);
394+
395+
if (IsWindow(hWnd))
396+
{
397+
if (fForce)
398+
return DestroyWindow(hWnd);
399+
else
400+
return FALSE;
401+
}
402+
403+
return TRUE;
404+
}

0 commit comments

Comments
 (0)