1. fixed prototypes of NtQueryPerformanceCounter() and NtDelayExecution() and made them safely access buffers

2. moved the implementation of Sleep(Ex)() into more a appropriate file

svn path=/trunk/; revision=13337
This commit is contained in:
Thomas Bluemel
2005-01-27 14:11:19 +00:00
parent 6a5c36c54a
commit 466fa48bd1
5 changed files with 136 additions and 98 deletions
+9 -9
View File
@@ -3014,8 +3014,8 @@ ZwQueryMutant(
/*
* FUNCTION: Queries the system ( high-resolution ) performance counter.
* ARGUMENTS:
* Counter = Performance counter
* Frequency = Performance frequency
* PerformanceCounter = Performance counter
* PerformanceFrequency = Performance frequency
* REMARKS:
This procedure queries a tick count faster than 10ms ( The resolution for Intel®-based CPUs is about 0.8 microseconds.)
This procedure maps to the win32 QueryPerformanceCounter, QueryPerformanceFrequency
@@ -3025,15 +3025,15 @@ ZwQueryMutant(
NTSTATUS
STDCALL
NtQueryPerformanceCounter(
IN PLARGE_INTEGER Counter,
IN PLARGE_INTEGER Frequency
OUT PLARGE_INTEGER PerformanceCounter,
OUT PLARGE_INTEGER PerformanceFrequency OPTIONAL
);
NTSTATUS
STDCALL
ZwQueryPerformanceCounter(
IN PLARGE_INTEGER Counter,
IN PLARGE_INTEGER Frequency
OUT PLARGE_INTEGER PerformanceCounter,
OUT PLARGE_INTEGER PerformanceFrequency OPTIONAL
);
/*
@@ -5240,8 +5240,8 @@ NtCreateThread(
NTSTATUS
STDCALL
NtDelayExecution(
IN ULONG Alertable,
IN LARGE_INTEGER *Interval
IN BOOLEAN Alertable,
IN PLARGE_INTEGER DelayInterval
);
/*
@@ -6439,7 +6439,7 @@ NTSTATUS
STDCALL
ZwDelayExecution(
IN BOOLEAN Alertable,
IN TIME *Interval
IN PLARGE_INTEGER DelayInterval
);
/*