* include/ddk/miniport.h (EMULATOR_PORT_ACCESS_TYPE): Define before using. (VIDEO_ACCESS_RANGE): Guard against prior definition. * include/ddk/minitape.h (INQUIRYDATA): Guard against prior definition. * include/ddk/ndis.h (DECLARE_UNKNOWN_PROTOTYPE): Correct macro. * include/ddk/ndisguid.h: Remove unneccessary #pragma pack's. * include/ddk/scsi.h (INQUIRYDATA): Guard against prior definition. * include/ddk/scsiwmi.h (GUID): Define if not already done. (LPCGUID): Likewise. * include/ddk/tdi.h: Close "Listen flags" comment. * include/ddk/tdistat.h: Remove unneccessary #pragma pack's. * include/ddk/video.h: Add #pragma pack(push,4) to balance. (VIDEO_ACCESS_RANGE): Guard against prior definition. * include/ddk/videoagp.h:Add #pragma pack(push,4) to balance. * include/ddk/win2k.h: Likewise. * include/ddk/winddi.h: Likewise. * include/ddk/winddk.h: Likewise. * include/ddk/winnt4.h: Likewise. * include/ddk/ws2san.h: Likewise. * include/ddk/xfilter.h: Remove unbalanced #pragma pack(pop). * include/ddk/video.h: Don't process rest of file ifdef __WINDDI_H. * include/ddk/winddi.h: Don't process rest of file ifdef __VIDEO_H. * include/ddk/usb.h: Don't process rest of file ifdef __USBDI_H. * include/ddk/usbdi.h: Don't process rest of file ifdef __USB_H. * include/ddk/usbcamdi.h: Don't process rest of file if !defined(__USB_H) && !defined(__USBDI_H)
		
			
				
	
	
		
			84 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			84 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * tdistat.h
 | 
						|
 *
 | 
						|
 * TDI status codes
 | 
						|
 *
 | 
						|
 * This file is part of the w32api package.
 | 
						|
 *
 | 
						|
 * Contributors:
 | 
						|
 *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
 | 
						|
 *
 | 
						|
 * THIS SOFTWARE IS NOT COPYRIGHTED
 | 
						|
 *
 | 
						|
 * This source code is offered for use in the public domain. You may
 | 
						|
 * use, modify or distribute it freely.
 | 
						|
 *
 | 
						|
 * This code is distributed in the hope that it will be useful but
 | 
						|
 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
 | 
						|
 * DISCLAIMED. This includes but is not limited to warranties of
 | 
						|
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef __TDISTAT_H
 | 
						|
#define __TDISTAT_H
 | 
						|
 | 
						|
#if __GNUC__ >=3
 | 
						|
#pragma GCC system_header
 | 
						|
#endif
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
#define TDI_SUCCESS                       STATUS_SUCCESS
 | 
						|
#define TDI_NO_RESOURCES                  STATUS_INSUFFICIENT_RESOURCES
 | 
						|
#define TDI_ADDR_IN_USE                   STATUS_ADDRESS_ALREADY_EXISTS
 | 
						|
#define TDI_BAD_ADDR                      STATUS_INVALID_ADDRESS_COMPONENT
 | 
						|
#define TDI_NO_FREE_ADDR                  STATUS_TOO_MANY_ADDRESSES
 | 
						|
#define TDI_ADDR_INVALID                  STATUS_INVALID_ADDRESS
 | 
						|
#define TDI_ADDR_DELETED                  STATUS_ADDRESS_CLOSED
 | 
						|
#define TDI_BUFFER_OVERFLOW               STATUS_BUFFER_OVERFLOW
 | 
						|
#define TDI_BAD_EVENT_TYPE                STATUS_INVALID_PARAMETER
 | 
						|
#define TDI_BAD_OPTION                    STATUS_INVALID_PARAMETER
 | 
						|
#define TDI_CONN_REFUSED                  STATUS_CONNECTION_REFUSED
 | 
						|
#define TDI_INVALID_CONNECTION            STATUS_CONNECTION_INVALID
 | 
						|
#define TDI_ALREADY_ASSOCIATED            STATUS_ADDRESS_ALREADY_ASSOCIATED
 | 
						|
#define TDI_NOT_ASSOCIATED                STATUS_ADDRESS_NOT_ASSOCIATED
 | 
						|
#define TDI_CONNECTION_ACTIVE             STATUS_CONNECTION_ACTIVE
 | 
						|
#define TDI_CONNECTION_ABORTED            STATUS_CONNECTION_ABORTED
 | 
						|
#define TDI_CONNECTION_RESET              STATUS_CONNECTION_RESET
 | 
						|
#define TDI_TIMED_OUT                     STATUS_IO_TIMEOUT
 | 
						|
#define TDI_GRACEFUL_DISC                 STATUS_GRACEFUL_DISCONNECT
 | 
						|
#define TDI_NOT_ACCEPTED                  STATUS_DATA_NOT_ACCEPTED
 | 
						|
#define TDI_MORE_PROCESSING               STATUS_MORE_PROCESSING_REQUIRED
 | 
						|
#define TDI_INVALID_STATE                 STATUS_INVALID_DEVICE_STATE
 | 
						|
#define TDI_INVALID_PARAMETER             STATUS_INVALID_PARAMETER
 | 
						|
#define TDI_DEST_NET_UNREACH              STATUS_NETWORK_UNREACHABLE
 | 
						|
#define TDI_DEST_HOST_UNREACH             STATUS_HOST_UNREACHABLE
 | 
						|
#define TDI_DEST_UNREACHABLE              TDI_DEST_HOST_UNREACH
 | 
						|
#define TDI_DEST_PROT_UNREACH             STATUS_PROTOCOL_UNREACHABLE
 | 
						|
#define TDI_DEST_PORT_UNREACH             STATUS_PORT_UNREACHABLE
 | 
						|
#define TDI_INVALID_QUERY                 STATUS_INVALID_DEVICE_REQUEST
 | 
						|
#define TDI_REQ_ABORTED                   STATUS_REQUEST_ABORTED
 | 
						|
#define TDI_BUFFER_TOO_SMALL              STATUS_BUFFER_TOO_SMALL
 | 
						|
#define TDI_CANCELLED                     STATUS_CANCELLED
 | 
						|
#define	TDI_BUFFER_TOO_BIG		            STATUS_INVALID_BUFFER_SIZE
 | 
						|
#define TDI_INVALID_REQUEST               STATUS_INVALID_DEVICE_REQUEST
 | 
						|
#define TDI_PENDING                       STATUS_PENDING
 | 
						|
#define TDI_ITEM_NOT_FOUND                STATUS_OBJECT_NAME_NOT_FOUND
 | 
						|
 | 
						|
#define TDI_STATUS_BAD_VERSION            0xC0010004L
 | 
						|
#define TDI_STATUS_BAD_CHARACTERISTICS    0xC0010005L
 | 
						|
 | 
						|
#define	TDI_OPTION_EOL                    0
 | 
						|
 | 
						|
#define	TDI_ADDRESS_OPTION_REUSE          1
 | 
						|
#define	TDI_ADDRESS_OPTION_DHCP           2
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 | 
						|
 | 
						|
#endif /* __TDISTAT_H */
 |