Bitdefender Hypervisor Memory Introspection
winumpath.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Bitdefender
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #ifndef _WINUMPATH_H_
6 #define _WINUMPATH_H_
7 
8 #include "introcrt.h"
9 
13 typedef struct _WINUM_PATH
14 {
16 
19 
22 
24 
27 
30 
32 
33 
34 WINUM_PATH *
36  _In_ const WCHAR *Path,
39  );
40 
41 WINUM_PATH *
44  );
45 
46 void
49  );
50 
51 WINUM_PATH *
54  );
55 
56 #endif // _WINUMPATH_H_
57 
#define _In_
Definition: intro_sal.h:21
WINUM_PATH * IntWinUmPathFetchAndReferenceBySubsection(QWORD SubsectionGva)
Fetches a WINUM_PATH object by the unique identifier and increments the reference counter on it...
Definition: winumpath.c:314
DWORD NameSize
The number of bytes in the name string.
Definition: winumpath.h:21
Definition: rbtree.h:34
int32_t INT32
Definition: intro_types.h:44
DWORD PathSize
The number of bytes in the path string.
Definition: winumpath.h:20
void IntWinUmPathDereference(WINUM_PATH **Path)
Dereferences a WINUM_PATH object, releasing the resources if the reference count has reached 0...
Definition: winumpath.c:340
#define _Inout_
Definition: intro_sal.h:20
unsigned long long QWORD
Definition: intro_types.h:53
QWORD SubsectionGva
The subsection guest virtual address from where the path was read. Serves as an unique identifier...
Definition: winumpath.h:29
WINUM_PATH * IntWinUmPathReference(WINUM_PATH *Path)
Increases the reference count of the given WINUM_PATH object.
Definition: winumpath.c:292
DWORD NameHash
The CRC32 hash of the name. Used for fast matching.
Definition: winumpath.h:23
uint16_t WCHAR
Definition: intro_types.h:63
uint32_t DWORD
Definition: intro_types.h:49
struct _WINUM_PATH * PWINUM_PATH
WINUM_PATH * IntWinUmPathCreate(const WCHAR *Path, DWORD PathSize, QWORD SubsectionGva)
Creates a WINUM_PATH object from the given parameters.
Definition: winumpath.c:184
WCHAR * Name
The name of the module contained in the path.
Definition: winumpath.h:18
RBNODE RbNode
The node which is inserted into gPaths tree.
Definition: winumpath.h:15
struct _WINUM_PATH WINUM_PATH
INT32 RefCount
The reference count of the current object. When reaching 0, the path will be freed.
Definition: winumpath.h:26
WCHAR * Path
The string which represents the user-mode module path.
Definition: winumpath.h:17