mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
4433d7b9c4
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2576 21ef857c-d57f-4fe0-8362-d861dc6d29cd
30 lines
629 B
C
30 lines
629 B
C
#ifndef DLTMGR_H
|
|
#define DLTMGR_H
|
|
|
|
typedef struct _PH_SINGLE_DELTA
|
|
{
|
|
FLOAT Value;
|
|
FLOAT Delta;
|
|
} PH_SINGLE_DELTA, *PPH_SINGLE_DELTA;
|
|
|
|
typedef struct _PH_UINT32_DELTA
|
|
{
|
|
ULONG Value;
|
|
ULONG Delta;
|
|
} PH_UINT32_DELTA, *PPH_UINT32_DELTA;
|
|
|
|
typedef struct _PH_UINT64_DELTA
|
|
{
|
|
ULONG64 Value;
|
|
ULONG64 Delta;
|
|
} PH_UINT64_DELTA, *PPH_UINT64_DELTA;
|
|
|
|
#define PhInitializeDelta(DltMgr) \
|
|
((DltMgr)->Value = 0, (DltMgr)->Delta = 0)
|
|
|
|
#define PhUpdateDelta(DltMgr, NewValue) \
|
|
((DltMgr)->Delta = (NewValue) - (DltMgr)->Value, \
|
|
(DltMgr)->Value = (NewValue), (DltMgr)->Delta)
|
|
|
|
#endif
|