source: Daodan/MinGW/include/ddk/tdistat.h@ 1063

Last change on this file since 1063 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 3.4 KB
Line 
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#if __GNUC__ >=3
27#pragma GCC system_header
28#endif
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
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
70
71#define TDI_STATUS_BAD_VERSION 0xC0010004L
72#define TDI_STATUS_BAD_CHARACTERISTICS 0xC0010005L
73
74#define TDI_OPTION_EOL 0
75
76#define TDI_ADDRESS_OPTION_REUSE 1
77#define TDI_ADDRESS_OPTION_DHCP 2
78
79#ifdef __cplusplus
80}
81#endif
82
83#endif /* __TDISTAT_H */
Note: See TracBrowser for help on using the repository browser.