ReactOS  0.4.15-dev-3453-gff89651
fxlock.cpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  FxLock.cpp
8 
9 Abstract:
10 
11  This module contains the implementation of FxLock
12 
13 Author:
14 
15 
16 
17 Environment:
18 
19  Both kernel and user mode
20 
21 Revision History:
22 
23 
24 --*/
25 
26 #include "coreprivshared.hpp"
27 
28 VOID
30  __in FxObject * ParentObject
31  )
32 /*++
33 
34 Routine Description:
35  This is called to initialize the verifier with the object type so it can
36  track lock order and sequence.
37 
38 Arguments:
39  ParentObject - the owning object
40 
41 Return Value:
42  None
43 
44  --*/
45 {
47 
48  pFxDriverGlobals = ParentObject->GetDriverGlobals();
49 
51  //
52  // Allocation failure is not fatal, we just won't track anything
53  //
54 
57  ParentObject);
58  }
59 }
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
BOOLEAN FxVerifierLock
Definition: fxglobals.h:451
FxVerifierLock * m_Verifier
Definition: fxlock.hpp:54
PFX_DRIVER_GLOBALS pFxDriverGlobals
VOID Initialize(__in FxObject *ParentObject)
Definition: fxlock.cpp:29
_Must_inspect_result_ static __inline NTSTATUS CreateAndInitialize(__out FxVerifierLock **VerifierLock, __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in FxObject *ParentObject, __in BOOLEAN UseMutex)
#define __in
Definition: dbghelp.h:35