ReactOS 0.4.15-dev-8100-g1887773
fxmemorybufferpreallocated.hpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxMemoryBufferPreallocated.hpp
8
9Abstract:
10
11Author:
12
13Environment:
14
15 kernel mode only
16
17Revision History:
18
19--*/
20
21#ifndef _FXMEMORYBUFFERPREALLOCATED_H_
22#define _FXMEMORYBUFFERPREALLOCATED_H_
23
25public:
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
52 );
53
54protected:
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_
LONG NTSTATUS
Definition: precomp.h:26
Definition: bufpool.h:45
_Must_inspect_result_ NTSTATUS QueryInterface(__inout FxQueryInterfaceParams *Params)
VOID UpdateBuffer(_Pre_notnull_ _Pre_writable_byte_size_(BufferSize) PVOID Buffer, _In_ size_t BufferSize)
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
#define __in
Definition: dbghelp.h:35
#define __inout
Definition: dbghelp.h:50
#define _Pre_writable_byte_size_(size)
Definition: ms_sal.h:647
#define _Pre_notnull_
Definition: ms_sal.h:680
#define _Must_inspect_result_
Definition: ms_sal.h:558
#define _In_
Definition: ms_sal.h:308
unsigned short USHORT
Definition: pedump.c:61
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254
_In_ WDFIOTARGET _In_ PWDF_REQUEST_COMPLETION_PARAMS Params
Definition: wdfrequest.h:308