Author: aandrejevic
Date: Sun Jun 23 00:56:38 2013
New Revision: 59300
URL:
http://svn.reactos.org/svn/reactos?rev=59300&view=rev
Log:
[NTVDM]
Implement NtQueryTimerResolution.
Modified:
branches/ntvdm/ntoskrnl/ke/clock.c
Modified: branches/ntvdm/ntoskrnl/ke/clock.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/ntoskrnl/ke/clock.c?rev=5…
==============================================================================
--- branches/ntvdm/ntoskrnl/ke/clock.c [iso-8859-1] (original)
+++ branches/ntvdm/ntoskrnl/ke/clock.c [iso-8859-1] Sun Jun 23 00:56:38 2013
@@ -242,8 +242,26 @@
OUT PULONG MaximumResolution,
OUT PULONG ActualResolution)
{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
+ _SEH2_TRY
+ {
+ /* Probe the parameters */
+ ProbeForWriteUlong(MinimumResolution);
+ ProbeForWriteUlong(MaximumResolution);
+ ProbeForWriteUlong(ActualResolution);
+
+ /* Set the parameters to the actual values */
+ *MinimumResolution = KeMinimumIncrement;
+ *MaximumResolution = KeMaximumIncrement;
+ *ActualResolution = KeTimeIncrement;
+ }
+ _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
+ {
+ _SEH2_YIELD(return _SEH2_GetExceptionCode());
+ }
+ _SEH2_END;
+
+ /* Return success */
+ return STATUS_SUCCESS;
}
NTSTATUS