Process Hacker
dltmgr.h
Go to the documentation of this file.
1 #ifndef _PH_DLTMGR_H
2 #define _PH_DLTMGR_H
3 
4 typedef struct _PH_SINGLE_DELTA
5 {
6  FLOAT Value;
7  FLOAT Delta;
9 
10 typedef struct _PH_UINT32_DELTA
11 {
12  ULONG Value;
13  ULONG Delta;
15 
16 typedef struct _PH_UINT64_DELTA
17 {
18  ULONG64 Value;
19  ULONG64 Delta;
21 
22 typedef struct _PH_UINTPTR_DELTA
23 {
24  ULONG_PTR Value;
25  ULONG_PTR Delta;
27 
28 #define PhInitializeDelta(DltMgr) \
29  ((DltMgr)->Value = 0, (DltMgr)->Delta = 0)
30 
31 #define PhUpdateDelta(DltMgr, NewValue) \
32  ((DltMgr)->Delta = (NewValue) - (DltMgr)->Value, \
33  (DltMgr)->Value = (NewValue), (DltMgr)->Delta)
34 
35 #endif