ReactOS  0.4.15-dev-3163-gf17c2c0
fxmemorybufferpreallocated.hpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  FxMemoryBufferPreallocated.hpp
8 
9 Abstract:
10 
11 Author:
12 
13 Environment:
14 
15  kernel mode only
16 
17 Revision History:
18 
19 --*/
20 
21 #ifndef _FXMEMORYBUFFERPREALLOCATED_H_
22 #define _FXMEMORYBUFFERPREALLOCATED_H_
23 
25 public:
26 
28  _In_ PFX_DRIVER_GLOBALS FxDriverGlobals,
30  _In_ size_t BufferSize
31  );
32 
33  virtual
34  PVOID
36  VOID
37  )
38  {
39  return m_pBuffer;
40  }
41 
42  VOID
45  _In_ size_t BufferSize
46  );
47 
49  NTSTATUS
52  );
53 
54 protected:
55  // for derived classes
57  __in USHORT ObjectSize,
59  );
60 
62  _In_ PFX_DRIVER_GLOBALS FxDriverGlobals,
63  _In_ USHORT ObjectSize,
65  _In_ size_t BufferSize
66  );
67 
69 
71 };
72 #endif // _FXMEMORYBLOCKPREALLOCATED_H_
_In_ WDFIOTARGET _In_ PWDF_REQUEST_COMPLETION_PARAMS Params
Definition: wdfrequest.h:306
#define _Pre_writable_byte_size_(size)
Definition: ms_sal.h:647
VOID UpdateBuffer(_Pre_notnull_ _Pre_writable_byte_size_(BufferSize) PVOID Buffer, _In_ size_t BufferSize)
LONG NTSTATUS
Definition: precomp.h:26
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
#define _In_
Definition: ms_sal.h:308
Definition: bufpool.h:45
#define _Pre_notnull_
Definition: ms_sal.h:680
#define __inout
Definition: dbghelp.h:50
#define _Must_inspect_result_
Definition: ms_sal.h:558
unsigned short USHORT
Definition: pedump.c:61
FxMemoryBufferPreallocated(_In_ PFX_DRIVER_GLOBALS FxDriverGlobals, _Pre_notnull_ _Pre_writable_byte_size_(BufferSize) PVOID Buffer, _In_ size_t BufferSize)
_Must_inspect_result_ NTSTATUS QueryInterface(__inout FxQueryInterfaceParams *Params)
#define __in
Definition: dbghelp.h:35
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:251