Author: fireball
Date: Mon Oct 13 10:27:27 2014
New Revision: 64709
URL:
http://svn.reactos.org/svn/reactos?rev=64709&view=rev
Log:
[ARWINSS]
- Add missing EndTask() implementation.
Modified:
branches/arwinss/arwinss/client/user32/user32.spec
branches/arwinss/arwinss/client/user32/user_main.c
Modified: branches/arwinss/arwinss/client/user32/user32.spec
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/arwinss/client/user32/u…
==============================================================================
--- branches/arwinss/arwinss/client/user32/user32.spec [iso-8859-1] (original)
+++ branches/arwinss/arwinss/client/user32/user32.spec [iso-8859-1] Mon Oct 13 10:27:27
2014
@@ -204,7 +204,7 @@
@ stdcall EndDialog(long long)
@ stdcall EndMenu()
@ stdcall EndPaint(long ptr)
-@ stub EndTask
+@ stdcall EndTask(ptr long long)
@ stub EnterReaderModeHelper
@ stdcall EnumChildWindows(long ptr long)
@ stdcall EnumClipboardFormats(long)
Modified: branches/arwinss/arwinss/client/user32/user_main.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/arwinss/client/user32/u…
==============================================================================
--- branches/arwinss/arwinss/client/user32/user_main.c [iso-8859-1] (original)
+++ branches/arwinss/arwinss/client/user32/user_main.c [iso-8859-1] Mon Oct 13 10:27:27
2014
@@ -378,4 +378,27 @@
{
TRACE(": stub\n");
return TRUE;
-}
+}
+
+/*
+ * @implemented
+ */
+BOOL
+WINAPI
+EndTask(
+ HWND hWnd,
+ BOOL fShutDown,
+ BOOL fForce)
+{
+ SendMessageW(hWnd, WM_CLOSE, 0, 0);
+
+ if (IsWindow(hWnd))
+ {
+ if (fForce)
+ return DestroyWindow(hWnd);
+ else
+ return FALSE;
+ }
+
+ return TRUE;
+}