Author: jimtabor
Date: Fri Nov 22 18:45:58 2013
New Revision: 61079
URL:
http://svn.reactos.org/svn/reactos?rev=61079&view=rev
Log:
- Move ATI from stub file. Applications like Magnifier uses it but it seems to return an
error.
Modified:
trunk/reactos/win32ss/user/ntuser/input.c
trunk/reactos/win32ss/user/ntuser/ntstubs.c
Modified: trunk/reactos/win32ss/user/ntuser/input.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/input.…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/input.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/input.c [iso-8859-1] Fri Nov 22 18:45:58 2013
@@ -591,6 +591,44 @@
return STATUS_SUCCESS;
}
+BOOL
+APIENTRY
+NtUserAttachThreadInput(
+ IN DWORD idAttach,
+ IN DWORD idAttachTo,
+ IN BOOL fAttach)
+{
+ NTSTATUS Status;
+ PTHREADINFO pti, ptiTo;
+ BOOL Ret = FALSE;
+
+ UserEnterExclusive();
+ ERR("Enter NtUserAttachThreadInput %s\n",(fAttach ? "TRUE" :
"FALSE" ));
+
+ pti = IntTID2PTI((HANDLE)idAttach);
+ ptiTo = IntTID2PTI((HANDLE)idAttachTo);
+
+ if ( !pti || !ptiTo )
+ {
+ ERR("AttachThreadInput pti or ptiTo NULL.\n");
+ EngSetLastError(ERROR_INVALID_PARAMETER);
+ goto Exit;
+ }
+
+ Status = UserAttachThreadInput( pti, ptiTo, fAttach);
+ if (!NT_SUCCESS(Status))
+ {
+ ERR("AttachThreadInput Error Status 0x%x. \n",Status);
+ EngSetLastError(RtlNtStatusToDosError(Status));
+ }
+ else Ret = TRUE;
+
+Exit:
+ ERR("Leave NtUserAttachThreadInput, ret=%d\n",Ret);
+ UserLeave();
+ return Ret;
+}
+
/*
* NtUserSendInput
*
Modified: trunk/reactos/win32ss/user/ntuser/ntstubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/ntstub…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/ntstubs.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/ntstubs.c [iso-8859-1] Fri Nov 22 18:45:58 2013
@@ -18,44 +18,6 @@
{
STUB
return 0;
-}
-
-
-BOOL
-APIENTRY
-NtUserAttachThreadInput(
- IN DWORD idAttach,
- IN DWORD idAttachTo,
- IN BOOL fAttach)
-{
- NTSTATUS Status;
- PTHREADINFO pti, ptiTo;
- BOOL Ret = FALSE;
-
- UserEnterExclusive();
- ERR("Enter NtUserAttachThreadInput %s\n",(fAttach ? "TRUE" :
"FALSE" ));
-
- pti = IntTID2PTI((HANDLE)idAttach);
- ptiTo = IntTID2PTI((HANDLE)idAttachTo);
-
- if ( !pti || !ptiTo )
- {
- ERR("AttachThreadInput pti or ptiTo NULL.\n");
- EngSetLastError(ERROR_INVALID_PARAMETER);
- goto Exit;
- }
-
- Status = UserAttachThreadInput( pti, ptiTo, fAttach);
- if (!NT_SUCCESS(Status))
- {
- EngSetLastError(RtlNtStatusToDosError(Status));
- }
- else Ret = TRUE;
-
-Exit:
- ERR("Leave NtUserAttachThreadInput, ret=%d\n",Ret);
- UserLeave();
- return Ret;
}
//