ReactOS  0.4.15-dev-3297-g037c744
probeandlock.c
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  ProbeAndLock.c
8 
9 Abstract:
10 
11  This module contains C routines for probing and locking
12  down memory buffers.
13 
14 
15 Author:
16 
17 
18 
19 Environment:
20 
21  Kernel mode only
22 
23 Revision 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 
37  __in PMDL Mdl,
39  )
40 {
41  _SEH2_TRY
42  {
44  }
46  {
48  }
49  _SEH2_END;
50 
51  return STATUS_SUCCESS;
52 }
53 
56  __in PMDL Mdl,
58  )
59 {
60  _SEH2_TRY
61  {
63  }
65  {
67  }
68  _SEH2_END;
69 
70  return STATUS_SUCCESS;
71 }
72 
75  __in PMDL Mdl,
78  )
79 {
80  _SEH2_TRY
81  {
83  }
85  {
87  }
88  _SEH2_END;
89 
90  return STATUS_SUCCESS;
91 }
NTSTATUS FxProbeAndLockForRead(__in PMDL Mdl, __in KPROCESSOR_MODE AccessMode)
Definition: probeandlock.c:36
LONG NTSTATUS
Definition: precomp.h:26
_SEH2_TRY
Definition: create.c:4226
_In_ PEPROCESS _In_ KPROCESSOR_MODE AccessMode
Definition: mmfuncs.h:395
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
NTSTATUS FxProbeAndLockForWrite(__in PMDL Mdl, __in KPROCESSOR_MODE AccessMode)
Definition: probeandlock.c:55
_SEH2_END
Definition: create.c:4400
VOID NTAPI MmProbeAndLockPages(IN PMDL Mdl, IN KPROCESSOR_MODE AccessMode, IN LOCK_OPERATION Operation)
Definition: mdlsup.c:922
enum _LOCK_OPERATION LOCK_OPERATION
_In_ WDFDEVICE _In_ PVOID _In_opt_ PMDL Mdl
_In_ FLT_SET_CONTEXT_OPERATION Operation
Definition: fltkernel.h:1467
#define _SEH2_EXCEPT(...)
Definition: pseh2_64.h:40
#define STATUS_SUCCESS
Definition: shellext.h:65
#define _SEH2_GetExceptionCode()
Definition: pseh2_64.h:165
#define _SEH2_YIELD(__stmt)
Definition: pseh2_64.h:168
#define __in
Definition: dbghelp.h:35
NTSTATUS FxProbeAndLockWithAccess(__in PMDL Mdl, __in KPROCESSOR_MODE AccessMode, __in LOCK_OPERATION Operation)
Definition: probeandlock.c:74