mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:56:00 +00:00
[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? svn path=/trunk/; revision=63690
This commit is contained in:
parent
ab9b6a4251
commit
c5b0f1eb96
1 changed files with 0 additions and 54 deletions
|
@ -125,58 +125,4 @@ PsEstablishWin32Callouts(IN PWIN32_CALLOUTS_FPNS CalloutData)
|
||||||
KeGdiFlushUserBatch = CalloutData->BatchFlushRoutine;
|
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 */
|
/* EOF */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue