ReactOS  0.4.15-dev-2355-gaf9df93
kefuncs.h
Go to the documentation of this file.
1 /*++ NDK Version: 0098
2 
3 Copyright (c) Alex Ionescu. All rights reserved.
4 
5 Header Name:
6 
7  kefuncs.h
8 
9 Abstract:
10 
11  Functions definitions for the Kernel services.
12 
13 Author:
14 
15  Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
16 
17 --*/
18 
19 #ifndef _KEFUNCS_H
20 #define _KEFUNCS_H
21 
22 //
23 // Dependencies
24 //
25 #include <umtypes.h>
26 #include <ketypes.h>
27 #include <section_attribs.h>
28 
29 #ifndef NTOS_MODE_USER
30 
31 //
32 // APC Functions
33 //
34 VOID
35 NTAPI
37  _In_ PKAPC Apc,
39  _In_ KAPC_ENVIRONMENT TargetEnvironment,
40  _In_ PKKERNEL_ROUTINE KernelRoutine,
41  _In_opt_ PKRUNDOWN_ROUTINE RundownRoutine,
42  _In_ PKNORMAL_ROUTINE NormalRoutine,
45 );
46 
47 BOOLEAN
48 NTAPI
50  _In_ PKAPC Apc,
54 );
55 
56 VOID
57 NTAPI
60 #ifdef _M_AMD64
61  _In_ PKEXCEPTION_FRAME ExceptionFrame,
62 #else
63  _Reserved_ PKEXCEPTION_FRAME ExceptionFrame,
64 #endif
65  _In_ PKTRAP_FRAME TrapFrame
66 );
67 
68 //
69 // Process/Thread Functions
70 //
71 VOID
72 NTAPI
75 );
76 
77 BOOLEAN
78 NTAPI
80  VOID
81 );
82 
83 VOID
84 NTAPI
88 );
89 
91 NTAPI
95 );
96 
98 NTAPI
100  VOID
101 );
102 
103 BOOLEAN
104 NTAPI
108  _In_ ULONG Limit,
111 );
112 
113 //
114 // Spinlock Functions
115 //
116 VOID
117 FASTCALL
120 );
121 
122 VOID
123 FASTCALL
126 );
127 
128 KIRQL
129 FASTCALL
131  _In_ KSPIN_LOCK_QUEUE_NUMBER LockNumber
132 );
133 
134 BOOLEAN
135 FASTCALL
137  _In_ KSPIN_LOCK_QUEUE_NUMBER LockNumber,
139 );
140 
141 VOID
142 FASTCALL
146 );
147 
148 
149 //
150 // Interrupt Functions
151 //
152 VOID
153 NTAPI
159  _In_ ULONG Vector,
160  _In_ KIRQL Irql,
164  _In_ CHAR ProcessorNumber,
166 );
167 
168 BOOLEAN
169 NTAPI
172 );
173 
174 BOOLEAN
175 NTAPI
178 );
179 
180 VOID
181 NTAPI
183  VOID
184 );
185 
186 VOID
187 NTAPI
189  VOID
190 );
191 
193 VOID
194 __cdecl
196  VOID
197 );
198 
199 VOID
200 NTAPI
202  VOID
203 );
204 
205 BOOLEAN
206 NTAPI
208  VOID
209 );
210 
211 BOOLEAN
212 NTAPI
214  _In_ PKTRAP_FRAME TrapFrame,
215 #ifdef _M_AMD64
216  _In_ PKEXCEPTION_FRAME ExceptionFrame
217 #else
218  _Reserved_ PKEXCEPTION_FRAME ExceptionFrame
219 #endif
220 );
221 
222 //
223 // Generic DPC Routines
224 //
225 VOID
226 NTAPI
228  _In_ PKDEFERRED_ROUTINE Routine,
230 );
231 
232 VOID
233 NTAPI
236 );
237 
238 BOOLEAN
239 NTAPI
242 );
243 
244 //
245 // ARC Configuration Functions. Only enabled if you have ARC Support
246 //
247 #ifdef _ARC_
249 NTAPI
254  _In_opt_ PULONG ComponentKey,
256 );
257 
259 NTAPI
264  _In_opt_ PULONG ComponentKey
265 );
266 #endif
267 
268 //
269 // Low-level Hardware/CPU Control Functions
270 //
271 VOID
272 NTAPI
274  _In_ BOOLEAN Invalid,
275  _In_ BOOLEAN AllProcessors
276 );
277 
278 VOID
279 NTAPI
281  _In_ ULONG Coherency
282 );
283 
284 VOID
286  _In_ ULONG Entry,
287  _In_ ULONG Value1,
288  _In_ ULONG Value2
289 );
290 
291 VOID
292 NTAPI
294  _In_ PKTRAP_FRAME TrapFrame
295 );
296 
297 VOID
298 NTAPI
300  _In_ PKTRAP_FRAME TrapFrame,
302 );
303 
304 VOID
305 NTAPI
307  _In_ KIRQL ProfileIrql
308 );
309 
310 VOID
311 NTAPI
313  _In_ ULONG MaxIncrement,
314  _In_ ULONG MinIncrement
315 );
316 
317 NTSTATUS
318 NTAPI
320  _In_ ULONG BiosCommand,
321  _Inout_ PCONTEXT BiosArguments
322 );
323 
324 //
325 // Misc. Functions
326 //
327 NTSTATUS
328 NTAPI
330  _In_ ULONG FunctionID,
331  _In_reads_opt_(InputLength) PVOID InputBuffer,
332  _In_ ULONG InputLength,
333  _Outptr_result_buffer_(*OutputLength) PVOID *OutputBuffer,
334  _Out_ PULONG OutputLength
335 );
336 
337 NTSTATUS
338 NTAPI
341 );
342 
343 #endif
344 
345 //
346 // Native Calls
347 //
349 NTSTATUS
350 NTAPI
351 NtContinue(
353  _In_ BOOLEAN TestAlert
354 );
355 
357 NTSTATUS
358 NTAPI
360  _In_ PVOID Result,
363 );
364 
366 NTSTATUS
367 NTAPI
369  _Out_ PHANDLE ProfileHandle,
371  _In_ PVOID ImageBase,
372  _In_ SIZE_T ImageSize,
373  _In_ ULONG Granularity,
375  _In_ ULONG ProfilingSize,
377  _In_ KAFFINITY ProcessorMask
378 );
379 
381 NTSTATUS
382 NTAPI
384  _Out_ PHANDLE ProfileHandle,
386  _In_ PVOID ImageBase,
387  _In_ SIZE_T ImageSize,
388  _In_ ULONG Granularity,
390  _In_ ULONG ProfilingSize,
392  _In_ USHORT GroupCount,
394 );
395 
397 NTSTATUS
398 NTAPI
402 );
403 
404 ULONG
405 NTAPI
407  VOID
408 );
409 
411 NTSTATUS
412 NTAPI
414  _In_ HANDLE ThreadHandle,
416 );
417 
419 ULONG
420 NTAPI
422  VOID
423 );
424 
426 NTSTATUS
427 NTAPI
429  _In_ KPROFILE_SOURCE ProfileSource,
431 );
432 
434 NTSTATUS
435 NTAPI
439 );
440 
442 NTSTATUS
443 NTAPI
445  _Out_ PLARGE_INTEGER CurrentTime
446 );
447 
449 NTSTATUS
450 NTAPI
452  _Out_ PULONG MinimumResolution,
453  _Out_ PULONG MaximumResolution,
454  _Out_ PULONG ActualResolution
455 );
456 
458 NTSTATUS
459 NTAPI
461  _In_ HANDLE ThreadHandle,
463  _In_opt_ PVOID NormalContext,
466 );
467 
469 NTSTATUS
470 NTAPI
472  _In_ HANDLE ThreadHandle,
473  _In_opt_ HANDLE UserApcReserveHandle,
475  _In_opt_ PVOID NormalContext,
478 );
479 
481 NTSTATUS
482 NTAPI
484  _In_ PEXCEPTION_RECORD ExceptionRecord,
486  _In_ BOOLEAN SearchFrames
487 );
488 
490 NTSTATUS
491 NTAPI
493  _In_ HANDLE ThreadHandle,
495 );
496 
498 NTSTATUS
499 NTAPI
502  _In_ KPROFILE_SOURCE ClockSource
503 );
504 
506 NTSTATUS
507 NTAPI
509  _In_ ULONG Selector1,
510  _In_ LDT_ENTRY LdtEntry1,
511  _In_ ULONG Selector2,
512  _In_ LDT_ENTRY LdtEntry2
513 );
514 
516 NTSTATUS
517 NTAPI
519  _In_ PLARGE_INTEGER SystemTime,
520  _In_opt_ PLARGE_INTEGER NewSystemTime
521 );
522 
524 NTSTATUS
525 NTAPI
527  _In_ ULONG RequestedResolution,
528  _In_ BOOLEAN SetOrUnset,
529  _Out_ PULONG ActualResolution
530 );
531 
533 NTSTATUS
534 NTAPI
536  _In_ HANDLE ProfileHandle
537 );
538 
540 NTSTATUS
541 NTAPI
543  _In_ HANDLE ProfileHandle
544 );
545 
547 NTSTATUS
548 NTAPI
550  VOID
551 );
552 
554 NTSTATUS
555 NTAPI
558  _In_ PVOID ControlData
559 );
560 
562 NTSTATUS
563 NTAPI
564 NtW32Call(
565  _In_ ULONG RoutineIndex,
566  _In_ PVOID Argument,
567  _In_ ULONG ArgumentLength,
570 );
571 
573 NTSTATUS
574 NTAPI
576  VOID
577 );
578 
579 NTSYSAPI
580 NTSTATUS
581 NTAPI
582 ZwContinue(
584  _In_ BOOLEAN TestAlert
585 );
586 
587 NTSYSAPI
588 NTSTATUS
589 NTAPI
591  _In_ PVOID Result,
594 );
595 
596 NTSYSAPI
597 NTSTATUS
598 NTAPI
600  _Out_ PHANDLE ProfileHandle,
602  _In_ PVOID ImageBase,
603  _In_ ULONG ImageSize,
604  _In_ ULONG Granularity,
606  _In_ ULONG ProfilingSize,
608  _In_ KAFFINITY ProcessorMask
609 );
610 
611 NTSYSAPI
612 NTSTATUS
613 NTAPI
617 );
618 
619 NTSYSAPI
620 NTSTATUS
621 NTAPI
625  _In_ ULONG NumberOfBytesToFlush
626 );
627 
628 NTSYSAPI
629 NTSTATUS
630 NTAPI
632  _In_ HANDLE ThreadHandle,
634 );
635 
636 NTSYSAPI
637 ULONG
638 NTAPI
640  VOID
641 );
642 
643 NTSYSAPI
644 NTSTATUS
645 NTAPI
647  _In_ KPROFILE_SOURCE ProfileSource,
649 );
650 
651 NTSYSAPI
652 NTSTATUS
653 NTAPI
657 );
658 
659 NTSYSAPI
660 NTSTATUS
661 NTAPI
663  _Out_ PLARGE_INTEGER CurrentTime
664 );
665 
666 NTSYSAPI
667 NTSTATUS
668 NTAPI
670  _Out_ PULONG MinimumResolution,
671  _Out_ PULONG MaximumResolution,
672  _Out_ PULONG ActualResolution
673 );
674 
675 NTSYSAPI
676 NTSTATUS
677 NTAPI
679  _In_ HANDLE ThreadHandle,
681  _In_opt_ PVOID NormalContext,
684 );
685 
686 NTSYSAPI
687 NTSTATUS
688 NTAPI
690  _In_ PEXCEPTION_RECORD ExceptionRecord,
692  _In_ BOOLEAN SearchFrames
693 );
694 
695 NTSYSAPI
696 NTSTATUS
697 NTAPI
699  _In_ HANDLE ThreadHandle,
701 );
702 
703 NTSYSAPI
704 NTSTATUS
705 NTAPI
708  _In_ KPROFILE_SOURCE ClockSource
709 );
710 
711 NTSYSAPI
712 NTSTATUS
713 NTAPI
715  _In_ ULONG Selector1,
716  _In_ LDT_ENTRY LdtEntry1,
717  _In_ ULONG Selector2,
718  _In_ LDT_ENTRY LdtEntry2
719 );
720 
721 NTSYSAPI
722 NTSTATUS
723 NTAPI
725  _In_ PLARGE_INTEGER SystemTime,
726  _In_opt_ PLARGE_INTEGER NewSystemTime
727 );
728 
729 NTSYSAPI
730 NTSTATUS
731 NTAPI
733  _In_ ULONG RequestedResolution,
734  _In_ BOOLEAN SetOrUnset,
735  _Out_ PULONG ActualResolution
736 );
737 
738 NTSYSAPI
739 NTSTATUS
740 NTAPI
742  _In_ HANDLE ProfileHandle
743 );
744 
745 NTSYSAPI
746 NTSTATUS
747 NTAPI
749  _In_ HANDLE ProfileHandle
750 );
751 
752 NTSYSAPI
753 NTSTATUS
754 NTAPI
756  VOID
757 );
758 
759 NTSYSAPI
760 NTSTATUS
761 NTAPI
764  _In_ PVOID ControlData
765 );
766 
767 NTSYSAPI
768 NTSTATUS
769 NTAPI
770 ZwW32Call(
771  _In_ ULONG RoutineIndex,
772  _In_ PVOID Argument,
773  _In_ ULONG ArgumentLength,
776 );
777 
778 NTSYSAPI
779 NTSTATUS
780 NTAPI
782  VOID
783 );
784 #endif
NTSYSAPI NTSTATUS NTAPI ZwW32Call(_In_ ULONG RoutineIndex, _In_ PVOID Argument, _In_ ULONG ArgumentLength, _Out_opt_ PVOID *Result, _Out_opt_ PULONG ResultLength)
NTSYSAPI NTSTATUS NTAPI ZwQueryPerformanceCounter(_Out_ PLARGE_INTEGER Counter, _Out_opt_ PLARGE_INTEGER Frequency)
_Inout_ PIRP _In_ NTSTATUS ExceptionCode
Definition: cdprocs.h:1772
BOOLEAN NTAPI KeDisconnectInterrupt(_Inout_ PKINTERRUPT InterruptObject)
VOID NTAPI KeInitializeApc(_In_ PKAPC Apc, _In_ PKTHREAD Thread, _In_ KAPC_ENVIRONMENT TargetEnvironment, _In_ PKKERNEL_ROUTINE KernelRoutine, _In_opt_ PKRUNDOWN_ROUTINE RundownRoutine, _In_ PKNORMAL_ROUTINE NormalRoutine, _In_ KPROCESSOR_MODE Mode, _In_ PVOID Context)
VOID NTAPI KiCoprocessorError(VOID)
Definition: cpu.c:1350
NTSYSCALLAPI NTSTATUS NTAPI NtYieldExecution(VOID)
Definition: thrdschd.c:744
NTSYSAPI NTSTATUS NTAPI ZwFlushInstructionCache(_In_ HANDLE ProcessHandle, _In_ PVOID BaseAddress, _In_ ULONG NumberOfBytesToFlush)
NTSYSCALLAPI NTSTATUS NTAPI NtCreateProfile(_Out_ PHANDLE ProfileHandle, _In_ HANDLE ProcessHandle, _In_ PVOID ImageBase, _In_ SIZE_T ImageSize, _In_ ULONG Granularity, _Out_ PVOID Buffer, _In_ ULONG ProfilingSize, _In_ KPROFILE_SOURCE Source, _In_ KAFFINITY ProcessorMask)
NTSYSCALLAPI NTSTATUS NTAPI NtSetContextThread(_In_ HANDLE ThreadHandle, _In_ PCONTEXT Context)
NTSTATUS NTAPI KeUserModeCallback(_In_ ULONG FunctionID, _In_reads_opt_(InputLength) PVOID InputBuffer, _In_ ULONG InputLength, _Outptr_result_buffer_(*OutputLength) PVOID *OutputBuffer, _Out_ PULONG OutputLength)
NTSYSAPI NTSTATUS NTAPI ZwTestAlert(VOID)
_In_ LONG Count
Definition: kefuncs.h:315
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK _In_ ULONG _In_ KIRQL _In_ KIRQL _In_ KINTERRUPT_MODE InterruptMode
Definition: iofuncs.h:798
BOOLEAN NTAPI KeConnectInterrupt(_Inout_ PKINTERRUPT InterruptObject)
VOID NTAPI KeEnterKernelDebugger(VOID)
Definition: bug.c:1438
KAFFINITY NTAPI KeSetAffinityThread(_Inout_ PKTHREAD Thread, _In_ KAFFINITY Affinity)
enum _KAPC_ENVIRONMENT KAPC_ENVIRONMENT
#define __cdecl
Definition: accygwin.h:79
_In_ ULONG Mode
Definition: hubbusif.h:303
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK _In_ ULONG _In_ KIRQL _In_ KIRQL _In_ KINTERRUPT_MODE _In_ BOOLEAN ShareVector
Definition: iofuncs.h:798
NTSYSAPI NTSTATUS NTAPI ZwStopProfile(_In_ HANDLE ProfileHandle)
unsigned char * PUCHAR
Definition: retypes.h:3
char CHAR
Definition: xmlstorage.h:175
VOID NTAPI KiDeliverApc(_In_ KPROCESSOR_MODE PreviousMode, _Reserved_ PKEXCEPTION_FRAME ExceptionFrame, _In_ PKTRAP_FRAME TrapFrame)
BOOLEAN FASTCALL KeTryToAcquireQueuedSpinLockRaiseToSynch(_In_ KSPIN_LOCK_QUEUE_NUMBER LockNumber, _In_ PKIRQL OldIrql)
BOOLEAN NTAPI KeIsAttachedProcess(VOID)
Definition: procobj.c:690
NTSYSAPI NTSTATUS NTAPI ZwStartProfile(_In_ HANDLE ProfileHandle)
LONG NTSTATUS
Definition: precomp.h:26
NTSYSAPI NTSTATUS NTAPI ZwRaiseException(_In_ PEXCEPTION_RECORD ExceptionRecord, _In_ PCONTEXT Context, _In_ BOOLEAN SearchFrames)
_In_opt_ ULONG Base
Definition: rtlfuncs.h:2373
NTSYSAPI NTSTATUS NTAPI ZwDelayExecution(_In_ BOOLEAN Alertable, _In_ LARGE_INTEGER *Interval)
NTSYSCALLAPI NTSTATUS NTAPI NtQuerySystemTime(_Out_ PLARGE_INTEGER CurrentTime)
NTSYSCALLAPI NTSTATUS NTAPI NtStopProfile(_In_ HANDLE ProfileHandle)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryIntervalProfile(_In_ KPROFILE_SOURCE ProfileSource, _Out_ PULONG Interval)
#define NTSYSCALLAPI
Definition: ntbasedef.h:204
VOID FASTCALL KiAcquireSpinLock(_Inout_ PKSPIN_LOCK SpinLock)
NTSYSAPI ULONG NTAPI ZwGetTickCount(VOID)
VOID NTAPI KeSetEventBoostPriority(_In_ PKEVENT Event, _In_opt_ PKTHREAD *Thread)
NTSYSAPI NTSTATUS NTAPI ZwGetContextThread(_In_ HANDLE ThreadHandle, _Out_ PCONTEXT Context)
BOOLEAN NTAPI KeInsertQueueApc(_In_ PKAPC Apc, _In_ PVOID SystemArgument1, _In_ PVOID SystemArgument2, _In_ KPRIORITY PriorityBoost)
KSPIN_LOCK * PKSPIN_LOCK
Definition: env_spec_w32.h:73
BOOLEAN NTAPI KeIsExecutingDpc(VOID)
Definition: dpc.c:946
VOID NTAPI KeProfileInterruptWithSource(_In_ PKTRAP_FRAME TrapFrame, _In_ KPROFILE_SOURCE Source)
#define FASTCALL
Definition: nt_native.h:50
#define NTSYSAPI
Definition: ntoskrnl.h:14
_Out_ PKIRQL Irql
Definition: csq.h:179
#define DECLSPEC_NORETURN
Definition: ntbasedef.h:176
LONG KPRIORITY
Definition: compat.h:662
#define _In_opt_
Definition: no_sal2.h:212
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemTime(_In_ PLARGE_INTEGER SystemTime, _In_opt_ PLARGE_INTEGER NewSystemTime)
NTSYSCALLAPI NTSTATUS NTAPI NtSetLdtEntries(_In_ ULONG Selector1, _In_ LDT_ENTRY LdtEntry1, _In_ ULONG Selector2, _In_ LDT_ENTRY LdtEntry2)
KSERVICE_ROUTINE * PKSERVICE_ROUTINE
Definition: ketypes.h:500
PCONFIGURATION_COMPONENT_DATA NTAPI KeFindConfigurationEntry(IN PCONFIGURATION_COMPONENT_DATA Child, IN CONFIGURATION_CLASS Class, IN CONFIGURATION_TYPE Type, IN PULONG ComponentKey OPTIONAL)
Definition: config.c:22
NTSYSAPI NTSTATUS NTAPI ZwContinue(_In_ PCONTEXT Context, _In_ BOOLEAN TestAlert)
NTSYSAPI NTSTATUS NTAPI ZwCallbackReturn(_In_ PVOID Result, _In_ ULONG ResultLength, _In_ NTSTATUS Status)
NTSYSCALLAPI NTSTATUS NTAPI NtRaiseException(_In_ PEXCEPTION_RECORD ExceptionRecord, _In_ PCONTEXT Context, _In_ BOOLEAN SearchFrames)
UCHAR KIRQL
Definition: env_spec_w32.h:591
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
NTSYSAPI NTSTATUS NTAPI ZwQueryTimerResolution(_Out_ PULONG MinimumResolution, _Out_ PULONG MaximumResolution, _Out_ PULONG ActualResolution)
_In_ WDFREQUEST _In_ NTSTATUS _In_ CCHAR PriorityBoost
Definition: wdfrequest.h:1011
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFDEVICE Child
Definition: wdffdo.h:533
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFSPINLOCK * SpinLock
Definition: wdfsync.h:225
VOID NTAPI KeSetDmaIoCoherency(_In_ ULONG Coherency)
NTSYSAPI NTSTATUS NTAPI ZwYieldExecution(VOID)
unsigned char BOOLEAN
enum _KPROFILE_SOURCE KPROFILE_SOURCE
PKPROCESS NTAPI KeGetCurrentProcess(VOID)
enum _KINTERRUPT_MODE KINTERRUPT_MODE
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK _In_ ULONG _In_ KIRQL _In_ KIRQL SynchronizeIrql
Definition: iofuncs.h:798
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
#define _Out_
Definition: no_sal2.h:160
VOID(NTAPI * PKKERNEL_ROUTINE)(IN struct _KAPC *Apc, IN OUT PKNORMAL_ROUTINE *NormalRoutine OPTIONAL, IN OUT PVOID *NormalContext OPTIONAL, IN OUT PVOID *SystemArgument1 OPTIONAL, IN OUT PVOID *SystemArgument2 OPTIONAL)
Definition: ketypes.h:684
_IRQL_requires_same_ typedef _In_ ULONG ControlCode
Definition: wmitypes.h:55
Definition: bufpool.h:45
_In_ KPRIORITY Increment
Definition: kefuncs.h:88
NTSYSAPI NTSTATUS NTAPI ZwQuerySystemTime(_Out_ PLARGE_INTEGER CurrentTime)
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:859
VOID NTAPI KeSetTimeIncrement(_In_ ULONG MaxIncrement, _In_ ULONG MinIncrement)
Status
Definition: gdiplustypes.h:24
_In_opt_ PVOID _In_opt_ PVOID SystemArgument1
Definition: ketypes.h:675
#define _Out_opt_
Definition: no_sal2.h:214
NTSYSAPI NTSTATUS NTAPI ZwSetTimerResolution(_In_ ULONG RequestedResolution, _In_ BOOLEAN SetOrUnset, _Out_ PULONG ActualResolution)
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
Definition: wdfiotarget.h:949
_In_ KPROCESSOR_MODE PreviousMode
Definition: sefuncs.h:103
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
Definition: mmfuncs.h:404
NTSYSAPI NTSTATUS NTAPI ZwVdmControl(_In_ ULONG ControlCode, _In_ PVOID ControlData)
VOID(NTAPI * PKRUNDOWN_ROUTINE)(IN struct _KAPC *Apc)
Definition: ketypes.h:680
VOID FASTCALL KeAcquireInStackQueuedSpinLockRaiseToSynch(_In_ PKSPIN_LOCK SpinLock, _In_ PKLOCK_QUEUE_HANDLE LockHandle)
_In_ WDFCOLLECTION _In_ ULONG Index
NTSYSAPI NTSTATUS NTAPI ZwSetContextThread(_In_ HANDLE ThreadHandle, _In_ PCONTEXT Context)
NTSYSAPI NTSTATUS NTAPI ZwSetIntervalProfile(_In_ ULONG Interval, _In_ KPROFILE_SOURCE ClockSource)
NTSYSCALLAPI NTSTATUS NTAPI NtDelayExecution(_In_ BOOLEAN Alertable, _In_ LARGE_INTEGER *Interval)
NTSYSCALLAPI NTSTATUS NTAPI NtStartProfile(_In_ HANDLE ProfileHandle)
Type
Definition: Type.h:6
_In_ ULONG _In_ ULONG _In_ ULONG _Out_ PKIRQL _Out_ PKAFFINITY Affinity
Definition: halfuncs.h:170
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
NTSYSCALLAPI ULONG NTAPI NtGetTickCount(VOID)
_In_ BOOLEAN Alertable
Definition: kefuncs.h:270
#define _Inout_
Definition: no_sal2.h:162
NTSYSCALLAPI NTSTATUS NTAPI NtContinue(_In_ PCONTEXT Context, _In_ BOOLEAN TestAlert)
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
DECLSPEC_NORETURN VOID __cdecl KiUnexpectedInterrupt(VOID)
Definition: interrupt.c:51
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID ServiceContext
Definition: iofuncs.h:798
#define _In_reads_opt_(s)
Definition: no_sal2.h:222
_In_opt_ HANDLE _In_opt_ PIO_APC_ROUTINE ApcRoutine
Definition: iofuncs.h:719
VOID NTAPI KeInitializeInterrupt(_Out_ PKINTERRUPT InterruptObject, _In_ PKSERVICE_ROUTINE ServiceRoutine, _In_ PVOID ServiceContext, _In_ PKSPIN_LOCK SpinLock, _In_ ULONG Vector, _In_ KIRQL Irql, _In_ KIRQL SynchronizeIrql, _In_ KINTERRUPT_MODE InterruptMode, _In_ BOOLEAN ShareVector, _In_ CHAR ProcessorNumber, _In_ BOOLEAN FloatingSave)
#define _Reserved_
Definition: no_sal2.h:504
NTSTATUS NTAPI Ke386CallBios(_In_ ULONG BiosCommand, _Inout_ PCONTEXT BiosArguments)
NTSYSAPI NTSTATUS NTAPI ZwSetLdtEntries(_In_ ULONG Selector1, _In_ LDT_ENTRY LdtEntry1, _In_ ULONG Selector2, _In_ LDT_ENTRY LdtEntry2)
VOID FASTCALL KiReleaseSpinLock(_Inout_ PKSPIN_LOCK SpinLock)
NTSYSCALLAPI NTSTATUS NTAPI NtTestAlert(VOID)
Definition: state.c:465
VOID NTAPI KeSetProfileIrql(_In_ KIRQL ProfileIrql)
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
Definition: kefuncs.h:790
KDEFERRED_ROUTINE * PKDEFERRED_ROUTINE
Definition: ketypes.h:678
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:454
ULONG NTAPI NtGetCurrentProcessorNumber(VOID)
Definition: sysinfo.c:3057
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK _In_ ULONG _In_ KIRQL _In_ KIRQL _In_ KINTERRUPT_MODE _In_ BOOLEAN _In_ KAFFINITY _In_ BOOLEAN FloatingSave
Definition: iofuncs.h:798
KIRQL * PKIRQL
Definition: env_spec_w32.h:592
Definition: ketypes.h:535
CONFIGURATION_TYPE
Definition: iotypes.h:4392
NTSYSCALLAPI NTSTATUS NTAPI NtQueryTimerResolution(_Out_ PULONG MinimumResolution, _Out_ PULONG MaximumResolution, _Out_ PULONG ActualResolution)
NTSYSCALLAPI NTSTATUS NTAPI NtQueueApcThread(_In_ HANDLE ThreadHandle, _In_ PKNORMAL_ROUTINE ApcRoutine, _In_opt_ PVOID NormalContext, _In_opt_ PVOID SystemArgument1, _In_opt_ PVOID SystemArgument2)
_In_opt_ PENTER_STATE_SYSTEM_HANDLER _In_opt_ PVOID _In_ LONG _In_opt_ LONG volatile * Number
Definition: ntpoapi.h:204
BOOLEAN NTAPI KiIpiServiceRoutine(_In_ PKTRAP_FRAME TrapFrame, _Reserved_ PKEXCEPTION_FRAME ExceptionFrame)
_In_opt_ PVOID _In_opt_ PVOID _In_opt_ PVOID SystemArgument2
Definition: ketypes.h:675
BOOLEAN NTAPI KeSignalCallDpcSynchronize(_In_ PVOID SystemArgument2)
Definition: compat.h:636
VOID NTAPI KeFlushEntireTb(_In_ BOOLEAN Invalid, _In_ BOOLEAN AllProcessors)
#define _In_
Definition: no_sal2.h:158
enum _CONFIGURATION_CLASS CONFIGURATION_CLASS
ULONG_PTR SIZE_T
Definition: typedefs.h:80
enum _KSPIN_LOCK_QUEUE_NUMBER KSPIN_LOCK_QUEUE_NUMBER
NTSYSCALLAPI NTSTATUS NTAPI NtVdmControl(_In_ ULONG ControlCode, _In_ PVOID ControlData)
unsigned short USHORT
Definition: pedump.c:61
ULONG_PTR KAFFINITY
Definition: compat.h:85
NTSYSCALLAPI NTSTATUS NTAPI NtSetTimerResolution(_In_ ULONG RequestedResolution, _In_ BOOLEAN SetOrUnset, _Out_ PULONG ActualResolution)
VOID NTAPI KeGenericCallDpc(_In_ PKDEFERRED_ROUTINE Routine, _In_ PVOID Context)
unsigned int * PULONG
Definition: retypes.h:1
#define _Outptr_result_buffer_(s)
Definition: no_sal2.h:286
NTSYSCALLAPI NTSTATUS NTAPI NtSetIntervalProfile(_In_ ULONG Interval, _In_ KPROFILE_SOURCE ClockSource)
static LARGE_INTEGER Frequency
Definition: clock.c:41
VOID KeSetGdtSelector(_In_ ULONG Entry, _In_ ULONG Value1, _In_ ULONG Value2)
VOID NTAPI KiDispatchInterrupt(VOID)
Definition: thrdini.c:295
static LARGE_INTEGER Counter
Definition: clock.c:43
KIRQL FASTCALL KeAcquireQueuedSpinLockRaiseToSynch(_In_ KSPIN_LOCK_QUEUE_NUMBER LockNumber)
NTSTATUS NTAPI KeRaiseUserException(_In_ NTSTATUS ExceptionCode)
Definition: exp.c:266
VOID NTAPI KeTerminateThread(_In_ KPRIORITY Increment)
unsigned int ULONG
Definition: retypes.h:1
NTSYSAPI NTSTATUS NTAPI ZwSetSystemTime(_In_ PLARGE_INTEGER SystemTime, _In_opt_ PLARGE_INTEGER NewSystemTime)
uint32_t * PULONG_PTR
Definition: typedefs.h:65
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
Definition: wdfdevice.h:3776
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167
NTSYSCALLAPI NTSTATUS NTAPI NtCallbackReturn(_In_ PVOID Result, _In_ ULONG ResultLength, _In_ NTSTATUS Status)
Definition: usercall.c:326
*LockHandle LockHandle _Out_ PKLOCK_QUEUE_HANDLE LockHandle
Definition: kefuncs.h:729
NTSYSAPI NTSTATUS NTAPI ZwQueueApcThread(_In_ HANDLE ThreadHandle, _In_ PKNORMAL_ROUTINE ApcRoutine, _In_opt_ PVOID NormalContext, _In_opt_ PVOID SystemArgument1, _In_opt_ PVOID SystemArgument2)
_In_ BOOLEAN _In_ PLARGE_INTEGER Interval
Definition: kefuncs.h:270
PCONFIGURATION_COMPONENT_DATA NTAPI KeFindConfigurationNextEntry(IN PCONFIGURATION_COMPONENT_DATA Child, IN CONFIGURATION_CLASS Class, IN CONFIGURATION_TYPE Type, IN PULONG ComponentKey OPTIONAL, IN PCONFIGURATION_COMPONENT_DATA *NextLink)
Definition: config.c:42
VOID(NTAPI * PKNORMAL_ROUTINE)(IN PVOID NormalContext OPTIONAL, IN PVOID SystemArgument1 OPTIONAL, IN PVOID SystemArgument2 OPTIONAL)
Definition: ketypes.h:674
NTSYSCALLAPI NTSTATUS NTAPI NtCreateProfileEx(_Out_ PHANDLE ProfileHandle, _In_ HANDLE ProcessHandle, _In_ PVOID ImageBase, _In_ SIZE_T ImageSize, _In_ ULONG Granularity, _Out_ PVOID Buffer, _In_ ULONG ProfilingSize, _In_ KPROFILE_SOURCE Source, _In_ USHORT GroupCount, _In_reads_(GroupCount) PGROUP_AFFINITY Affinity)
#define _In_reads_(s)
Definition: no_sal2.h:168
_In_ HANDLE ProcessHandle
Definition: mmfuncs.h:403
NTSYSCALLAPI NTSTATUS NTAPI NtGetContextThread(_In_ HANDLE ThreadHandle, _Out_ PCONTEXT Context)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryPerformanceCounter(_Out_ PLARGE_INTEGER Counter, _Out_opt_ PLARGE_INTEGER Frequency)
VOID NTAPI KeSignalCallDpcDone(_In_ PVOID SystemArgument1)
NTSYSAPI NTSTATUS NTAPI ZwQueryIntervalProfile(_In_ KPROFILE_SOURCE ProfileSource, _Out_ PULONG Interval)
NTSYSAPI NTSTATUS NTAPI ZwCreateProfile(_Out_ PHANDLE ProfileHandle, _In_ HANDLE ProcessHandle, _In_ PVOID ImageBase, _In_ ULONG ImageSize, _In_ ULONG Granularity, _Out_ PVOID Buffer, _In_ ULONG ProfilingSize, _In_ KPROFILE_SOURCE Source, _In_ KAFFINITY ProcessorMask)
NTSYSCALLAPI NTSTATUS NTAPI NtW32Call(_In_ ULONG RoutineIndex, _In_ PVOID Argument, _In_ ULONG ArgumentLength, _Out_opt_ PVOID *Result, _Out_opt_ PULONG ResultLength)
BOOLEAN NTAPI KeAddSystemServiceTable(_In_ PULONG_PTR Base, _In_opt_ PULONG Count, _In_ ULONG Limit, _In_ PUCHAR Number, _In_ ULONG Index)
_In_ LONG _In_ LONG Limit
Definition: kefuncs.h:315
base of all file and directory entries
Definition: entries.h:82
VOID NTAPI KeProfileInterrupt(_In_ PKTRAP_FRAME TrapFrame)
NTSYSCALLAPI NTSTATUS NTAPI NtQueueApcThreadEx(_In_ HANDLE ThreadHandle, _In_opt_ HANDLE UserApcReserveHandle, _In_ PKNORMAL_ROUTINE ApcRoutine, _In_opt_ PVOID NormalContext, _In_opt_ PVOID SystemArgument1, _In_opt_ PVOID SystemArgument2)
_In_ PKSERVICE_ROUTINE ServiceRoutine
Definition: iofuncs.h:798