ReactOS 0.4.15-dev-7918-g2a2556c
fxrequestsystembufferum.cpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxRequestSystemBuffer.cpp
8
9Abstract:
10
11 This module implements class representing the system buffer in an FxRequest
12
13Author:
14
15
16
17
18Environment:
19
20 User mode only
21
22Revision History:
23
24
25
26
27--*/
28
29#include "coreprivshared.hpp"
30
31// Tracing support
32extern "C" {
33#include "FxRequestSystemBufferUm.tmh"
34}
35
39 VOID
40 )
41/*++
42
43Routine Description:
44 Returns the system buffer that has been cached away by the call to SetBuffer()
45
46Arguments:
47 None
48
49Return Value:
50 Valid memory or NULL on error
51
52 --*/
53{
55
56 //
57 // For UMDF, the buffer is always stored in m_Buffer.
58 //
59 switch (irp->GetMajorFunction()) {
62 case IRP_MJ_READ:
63 case IRP_MJ_WRITE:
64 return m_Buffer;
65
66 default:
68 return NULL;
69 }
70}
71
72
Definition: fxirp.hpp:28
UCHAR GetMajorFunction(VOID)
Definition: fxirpum.cpp:217
FxIrp * GetFxIrp(VOID)
Definition: fxrequest.hpp:957
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
FxIrp * irp
#define ASSERT(a)
Definition: mode.c:44
#define _Must_inspect_result_
Definition: ms_sal.h:558
#define IRP_MJ_READ
Definition: rdpdr.c:46
#define IRP_MJ_DEVICE_CONTROL
Definition: rdpdr.c:52
#define IRP_MJ_WRITE
Definition: rdpdr.c:47
virtual _Must_inspect_result_ PVOID GetBuffer(VOID)
#define IRP_MJ_INTERNAL_DEVICE_CONTROL