xref: /reactos/sdk/include/ddk/tdistat.h (revision c2c66aff)
1 /*
2  * tdistat.h
3  *
4  * TDI status codes
5  *
6  * This file is part of the w32api package.
7  *
8  * Contributors:
9  *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
10  *
11  * THIS SOFTWARE IS NOT COPYRIGHTED
12  *
13  * This source code is offered for use in the public domain. You may
14  * use, modify or distribute it freely.
15  *
16  * This code is distributed in the hope that it will be useful but
17  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18  * DISCLAIMED. This includes but is not limited to warranties of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20  *
21  */
22 
23 #ifndef __TDISTAT_H
24 #define __TDISTAT_H
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 #define TDI_SUCCESS                       STATUS_SUCCESS
31 #define TDI_NO_RESOURCES                  STATUS_INSUFFICIENT_RESOURCES
32 #define TDI_ADDR_IN_USE                   STATUS_ADDRESS_ALREADY_EXISTS
33 #define TDI_BAD_ADDR                      STATUS_INVALID_ADDRESS_COMPONENT
34 #define TDI_NO_FREE_ADDR                  STATUS_TOO_MANY_ADDRESSES
35 #define TDI_ADDR_INVALID                  STATUS_INVALID_ADDRESS
36 #define TDI_ADDR_DELETED                  STATUS_ADDRESS_CLOSED
37 #define TDI_BUFFER_OVERFLOW               STATUS_BUFFER_OVERFLOW
38 #define TDI_BAD_EVENT_TYPE                STATUS_INVALID_PARAMETER
39 #define TDI_BAD_OPTION                    STATUS_INVALID_PARAMETER
40 #define TDI_CONN_REFUSED                  STATUS_CONNECTION_REFUSED
41 #define TDI_INVALID_CONNECTION            STATUS_CONNECTION_INVALID
42 #define TDI_ALREADY_ASSOCIATED            STATUS_ADDRESS_ALREADY_ASSOCIATED
43 #define TDI_NOT_ASSOCIATED                STATUS_ADDRESS_NOT_ASSOCIATED
44 #define TDI_CONNECTION_ACTIVE             STATUS_CONNECTION_ACTIVE
45 #define TDI_CONNECTION_ABORTED            STATUS_CONNECTION_ABORTED
46 #define TDI_CONNECTION_RESET              STATUS_CONNECTION_RESET
47 #define TDI_TIMED_OUT                     STATUS_IO_TIMEOUT
48 #define TDI_GRACEFUL_DISC                 STATUS_GRACEFUL_DISCONNECT
49 #define TDI_NOT_ACCEPTED                  STATUS_DATA_NOT_ACCEPTED
50 #define TDI_MORE_PROCESSING               STATUS_MORE_PROCESSING_REQUIRED
51 #define TDI_INVALID_STATE                 STATUS_INVALID_DEVICE_STATE
52 #define TDI_INVALID_PARAMETER             STATUS_INVALID_PARAMETER
53 #define TDI_DEST_NET_UNREACH              STATUS_NETWORK_UNREACHABLE
54 #define TDI_DEST_HOST_UNREACH             STATUS_HOST_UNREACHABLE
55 #define TDI_DEST_UNREACHABLE              TDI_DEST_HOST_UNREACH
56 #define TDI_DEST_PROT_UNREACH             STATUS_PROTOCOL_UNREACHABLE
57 #define TDI_DEST_PORT_UNREACH             STATUS_PORT_UNREACHABLE
58 #define TDI_INVALID_QUERY                 STATUS_INVALID_DEVICE_REQUEST
59 #define TDI_REQ_ABORTED                   STATUS_REQUEST_ABORTED
60 #define TDI_BUFFER_TOO_SMALL              STATUS_BUFFER_TOO_SMALL
61 #define TDI_CANCELLED                     STATUS_CANCELLED
62 #define TDI_BUFFER_TOO_BIG                STATUS_INVALID_BUFFER_SIZE
63 #define TDI_INVALID_REQUEST               STATUS_INVALID_DEVICE_REQUEST
64 #define TDI_PENDING                       STATUS_PENDING
65 #define TDI_ITEM_NOT_FOUND                STATUS_OBJECT_NAME_NOT_FOUND
66 
67 #define TDI_STATUS_BAD_VERSION            0xC0010004L
68 #define TDI_STATUS_BAD_CHARACTERISTICS    0xC0010005L
69 
70 #define TDI_OPTION_EOL                    0
71 
72 #define TDI_ADDRESS_OPTION_REUSE          1
73 #define TDI_ADDRESS_OPTION_DHCP           2
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* __TDISTAT_H */
80