ReactOS 0.4.15-dev-7842-g558ab78
backpack.h
Go to the documentation of this file.
1#ifndef _BACKPACK_
2#define _BACKPACK_
3
4typedef 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
struct _THROTTLING_STATE THROTTLING_STATE
struct _THROTTLING_STATE * PTHROTTLING_STATE
LARGE_INTEGER NextTime
Definition: backpack.h:6
LARGE_INTEGER Increment
Definition: backpack.h:9
ULONG MaximumDelay
Definition: backpack.h:8
volatile ULONG CurrentIncrement
Definition: backpack.h:7
volatile ULONG NumberOfQueries
Definition: backpack.h:10
uint32_t ULONG
Definition: typedefs.h:59