source: Include/qos.ab@ 232

Last change on this file since 232 was 42, checked in by イグトランス (egtra), 18 years ago

api_winerror.sbpとapi_winsock2.sbpとの間での定義の重複を除去など。

File size: 2.2 KB
RevLine 
[42]1' qos.ab
2#ifndef _INC_QOS_AB
3#define _INC_QOS_AB
4
5' Definitions for valued-based Service Type for each direction of data flow.
6
7TypeDef SERVICETYPE = DWord
8
9Const SERVICETYPE_NOTRAFFIC = &h00000000
10Const SERVICETYPE_BESTEFFORT = &h00000001
11Const SERVICETYPE_CONTROLLEDLOAD = &h00000002
12Const SERVICETYPE_GUARANTEED = &h00000003
13Const SERVICETYPE_NETWORK_UNAVAILABLE = &h00000004
14Const SERVICETYPE_GENERAL_INFORMATION = &h00000005
15Const SERVICETYPE_NOCHANGE = &h00000006
16Const SERVICETYPE_NONCONFORMING = &h00000009
17Const SERVICETYPE_NETWORK_CONTROL = &h0000000A
18Const SERVICETYPE_QUALITATIVE = &h0000000D
19' The usage of these is currently not supported.
20Const SERVICE_BESTEFFORT = &h80010000
21Const SERVICE_CONTROLLEDLOAD = &h80020000
22Const SERVICE_GUARANTEED = &h80040000
23Const SERVICE_QUALITATIVE = &h80200000
24
25' Flags to control the usage of RSVP on this flow.
26Const SERVICE_NO_TRAFFIC_CONTROL = &h81000000
27
28Const SERVICE_NO_QOS_SIGNALING = &h40000000
29
30' Flow Specifications for each direction of data flow.
31Type FLOWSPEC
32 TokenRate As DWord
33 TokenBucketSize As DWord
34 PeakBandwidth As DWord
35 Latency As DWord
36 DelayVariation As DWord
37 ServiceType As SERVICETYPE
38 MaxSduSize As DWord
39 MinimumPolicedSize As DWord
40End Type
41TypeDef PFLOWSPEC = *FLOWSPEC
42TypeDef LPFLOWSPEC = *FLOWSPEC
43
44Const QOS_NOT_SPECIFIED = &hFFFFFFFF
45
46Const POSITIVE_INFINITY_RAT = &hFFFFFFFE
47
48Type QOS_OBJECT_HDR
49 bjectType As DWord
50 bjectLength As DWord
51End Type
52TypeDef LPQOS_OBJECT_HDR = *QOS_OBJECT_HDR
53
54Const QOS_GENERAL_ID_BASE = 2000
55
56Const QOS_OBJECT_END_OF_LIST = (&h00000001 + QOS_GENERAL_ID_BASE)
57Const QOS_OBJECT_SD_MODE = (&h00000002 + QOS_GENERAL_ID_BASE)
58Const QOS_OBJECT_SHAPING_RATE = (&h00000003 + QOS_GENERAL_ID_BASE)
59Const QOS_OBJECT_DESTADDR = (&h00000004 + QOS_GENERAL_ID_BASE)
60
61
62Type QOS_SD_MODE
63 ObjectHdr As QOS_OBJECT_HDR
64 ShapeDiscardMode As DWord
65End Type
66TypeDef LPQOS_SD_MODE = QOS_SD_MODE
67
68Const TC_NONCONF_BORROW = 0
69Const TC_NONCONF_SHAPE = 1
70Const TC_NONCONF_DISCARD = 2
71Const TC_NONCONF_BORROW_PLUS = 3 ' Not supported currently
72
73Type QOS_SHAPING_RATE
74 ObjectHdr As QOS_OBJECT_HDR
75 ShapingRate As DWord
76End Type
77TypeDef LPQOS_SHAPING_RATE = *QOS_SHAPING_RATE
78
79#endif '_INC_QOS_AB
Note: See TracBrowser for help on using the repository browser.