Author: hbelusca
Date: Sun Jul 6 00:00:07 2014
New Revision: 63690
URL:
http://svn.reactos.org/svn/reactos?rev=63690&view=rev
Log:
[NTOS:PS]
Remove that deprecated NtW32Call function that doesn't exist on windows since NT 4.0
SP3.
Alex, do you want to keep its prototype in the NDK too?
Modified:
trunk/reactos/ntoskrnl/ps/win32.c
Modified: trunk/reactos/ntoskrnl/ps/win32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/win32.c?rev=63…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/win32.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/win32.c [iso-8859-1] Sun Jul 6 00:00:07 2014
@@ -125,58 +125,4 @@
KeGdiFlushUserBatch = CalloutData->BatchFlushRoutine;
}
-NTSTATUS
-NTAPI
-NtW32Call(IN ULONG RoutineIndex,
- IN PVOID Argument,
- IN ULONG ArgumentLength,
- OUT PVOID* Result,
- OUT PULONG ResultLength)
-{
- PVOID RetResult;
- ULONG RetResultLength;
- NTSTATUS Status;
- ASSERT(KeGetPreviousMode() != KernelMode);
-
- /* Enter SEH for probing */
- _SEH2_TRY
- {
- /* Probe arguments */
- ProbeForWritePointer(Result);
- ProbeForWriteUlong(ResultLength);
- }
- _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
- {
- /* Return the exception code */
- _SEH2_YIELD(return _SEH2_GetExceptionCode());
- }
- _SEH2_END;
-
- /* Call kernel function */
- Status = KeUserModeCallback(RoutineIndex,
- Argument,
- ArgumentLength,
- &RetResult,
- &RetResultLength);
- if (NT_SUCCESS(Status))
- {
- /* Enter SEH for write back */
- _SEH2_TRY
- {
- /* Return results to user mode */
- *Result = RetResult;
- *ResultLength = RetResultLength;
- }
- _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
- {
- /* Get the exception code */
- Status = _SEH2_GetExceptionCode();
- }
- _SEH2_END;
- }
-
- /* Return the result */
- return Status;
-}
-
/* EOF */