ReactOS  0.4.15-dev-506-ga3ec01c
backpack.h
Go to the documentation of this file.
1 #ifndef _BACKPACK_
2 #define _BACKPACK_
3 
4 typedef struct _THROTTLING_STATE
5 {
12 
13 #define RxInitializeThrottlingState(BP, Inc, MaxDelay) \
14 { \
15  if ((Inc) > 0) \
16  { \
17  (BP)->Increment.QuadPart = (Inc) * 10000; \
18  (BP)->MaximumDelay = (MaxDelay) / (Inc); \
19  (BP)->CurrentIncrement = 0; \
20  } \
21 }
22 
23 #endif
ULONG MaximumDelay
Definition: backpack.h:8
volatile ULONG CurrentIncrement
Definition: backpack.h:7
LARGE_INTEGER NextTime
Definition: backpack.h:6
LARGE_INTEGER Increment
Definition: backpack.h:9
volatile ULONG NumberOfQueries
Definition: backpack.h:10
struct _THROTTLING_STATE * PTHROTTLING_STATE
unsigned int ULONG
Definition: retypes.h:1
struct _THROTTLING_STATE THROTTLING_STATE