ReactOS 0.4.16-dev-92-g0c2cdca
probeandlock.c
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 ProbeAndLock.c
8
9Abstract:
10
11 This module contains C routines for probing and locking
12 down memory buffers.
13
14
15Author:
16
17
18
19Environment:
20
21 Kernel mode only
22
23Revision History:
24
25--*/
26
27//
28// These routines must be implemented in a C file to avoid problems
29// with C++ exception handling errors.
30//
31
32#include <ntddk.h>
33#include <pseh/pseh2.h> // __REACTOS__
34
39 )
40{
42 {
44 }
46 {
48 }
50
51 return STATUS_SUCCESS;
52}
53
58 )
59{
61 {
63 }
65 {
67 }
69
70 return STATUS_SUCCESS;
71}
72
78 )
79{
81 {
83 }
85 {
87 }
89
90 return STATUS_SUCCESS;
91}
LONG NTSTATUS
Definition: precomp.h:26
#define __in
Definition: dbghelp.h:35
#define _SEH2_END
Definition: filesup.c:22
#define _SEH2_TRY
Definition: filesup.c:19
FP_OP Operation
Definition: fpcontrol.c:150
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
VOID NTAPI MmProbeAndLockPages(IN PMDL Mdl, IN KPROCESSOR_MODE AccessMode, IN LOCK_OPERATION Operation)
Definition: mdlsup.c:931
NTSTATUS FxProbeAndLockWithAccess(__in PMDL Mdl, __in KPROCESSOR_MODE AccessMode, __in LOCK_OPERATION Operation)
Definition: probeandlock.c:74
NTSTATUS FxProbeAndLockForWrite(__in PMDL Mdl, __in KPROCESSOR_MODE AccessMode)
Definition: probeandlock.c:55
NTSTATUS FxProbeAndLockForRead(__in PMDL Mdl, __in KPROCESSOR_MODE AccessMode)
Definition: probeandlock.c:36
#define _SEH2_GetExceptionCode()
Definition: pseh2_64.h:165
#define _SEH2_EXCEPT(...)
Definition: pseh2_64.h:66
#define _SEH2_YIELD(__stmt)
Definition: pseh2_64.h:168
#define STATUS_SUCCESS
Definition: shellext.h:65
_In_ WDFDEVICE _In_ PVOID _In_opt_ PMDL Mdl
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
enum _LOCK_OPERATION LOCK_OPERATION
@ IoReadAccess
Definition: ketypes.h:863
@ IoWriteAccess
Definition: ketypes.h:864
_In_ PEPROCESS _In_ KPROCESSOR_MODE AccessMode
Definition: mmfuncs.h:396