Add a script to make it easier to initialize /.git
[msysgit/historical-msysgit.git] / mingw / include / ddk / tdistat.h
blobf0588d2579a745e231454b40bf8fa9a086c4f61f
1 /*
2 * tdistat.h
4 * TDI status codes
6 * This file is part of the w32api package.
8 * Contributors:
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
11 * THIS SOFTWARE IS NOT COPYRIGHTED
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
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.
23 #ifndef __TDISTAT_H
24 #define __TDISTAT_H
26 #if __GNUC__ >=3
27 #pragma GCC system_header
28 #endif
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
34 #define TDI_SUCCESS STATUS_SUCCESS
35 #define TDI_NO_RESOURCES STATUS_INSUFFICIENT_RESOURCES
36 #define TDI_ADDR_IN_USE STATUS_ADDRESS_ALREADY_EXISTS
37 #define TDI_BAD_ADDR STATUS_INVALID_ADDRESS_COMPONENT
38 #define TDI_NO_FREE_ADDR STATUS_TOO_MANY_ADDRESSES
39 #define TDI_ADDR_INVALID STATUS_INVALID_ADDRESS
40 #define TDI_ADDR_DELETED STATUS_ADDRESS_CLOSED
41 #define TDI_BUFFER_OVERFLOW STATUS_BUFFER_OVERFLOW
42 #define TDI_BAD_EVENT_TYPE STATUS_INVALID_PARAMETER
43 #define TDI_BAD_OPTION STATUS_INVALID_PARAMETER
44 #define TDI_CONN_REFUSED STATUS_CONNECTION_REFUSED
45 #define TDI_INVALID_CONNECTION STATUS_CONNECTION_INVALID
46 #define TDI_ALREADY_ASSOCIATED STATUS_ADDRESS_ALREADY_ASSOCIATED
47 #define TDI_NOT_ASSOCIATED STATUS_ADDRESS_NOT_ASSOCIATED
48 #define TDI_CONNECTION_ACTIVE STATUS_CONNECTION_ACTIVE
49 #define TDI_CONNECTION_ABORTED STATUS_CONNECTION_ABORTED
50 #define TDI_CONNECTION_RESET STATUS_CONNECTION_RESET
51 #define TDI_TIMED_OUT STATUS_IO_TIMEOUT
52 #define TDI_GRACEFUL_DISC STATUS_GRACEFUL_DISCONNECT
53 #define TDI_NOT_ACCEPTED STATUS_DATA_NOT_ACCEPTED
54 #define TDI_MORE_PROCESSING STATUS_MORE_PROCESSING_REQUIRED
55 #define TDI_INVALID_STATE STATUS_INVALID_DEVICE_STATE
56 #define TDI_INVALID_PARAMETER STATUS_INVALID_PARAMETER
57 #define TDI_DEST_NET_UNREACH STATUS_NETWORK_UNREACHABLE
58 #define TDI_DEST_HOST_UNREACH STATUS_HOST_UNREACHABLE
59 #define TDI_DEST_UNREACHABLE TDI_DEST_HOST_UNREACH
60 #define TDI_DEST_PROT_UNREACH STATUS_PROTOCOL_UNREACHABLE
61 #define TDI_DEST_PORT_UNREACH STATUS_PORT_UNREACHABLE
62 #define TDI_INVALID_QUERY STATUS_INVALID_DEVICE_REQUEST
63 #define TDI_REQ_ABORTED STATUS_REQUEST_ABORTED
64 #define TDI_BUFFER_TOO_SMALL STATUS_BUFFER_TOO_SMALL
65 #define TDI_CANCELLED STATUS_CANCELLED
66 #define TDI_BUFFER_TOO_BIG STATUS_INVALID_BUFFER_SIZE
67 #define TDI_INVALID_REQUEST STATUS_INVALID_DEVICE_REQUEST
68 #define TDI_PENDING STATUS_PENDING
69 #define TDI_ITEM_NOT_FOUND STATUS_OBJECT_NAME_NOT_FOUND
71 #define TDI_STATUS_BAD_VERSION 0xC0010004L
72 #define TDI_STATUS_BAD_CHARACTERISTICS 0xC0010005L
74 #define TDI_OPTION_EOL 0
76 #define TDI_ADDRESS_OPTION_REUSE 1
77 #define TDI_ADDRESS_OPTION_DHCP 2
79 #ifdef __cplusplus
81 #endif
83 #endif /* __TDISTAT_H */