From 0dc86c7a3ec632792abc131341cdf61cdfc3ee38 Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Sun, 8 Feb 2004 18:48:08 +0000 Subject: [PATCH] Added tcpioctl.h which is used by iphlpapi. svn path=/trunk/; revision=8094 --- reactos/include/tcpioctl.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 reactos/include/tcpioctl.h diff --git a/reactos/include/tcpioctl.h b/reactos/include/tcpioctl.h new file mode 100644 index 00000000000..3a2bffe4dfd --- /dev/null +++ b/reactos/include/tcpioctl.h @@ -0,0 +1,38 @@ +/* + * tcpioctl.h + * + * Set and query ioctl constants for tcpip.sys + * + * Contributors: + * Created by Art Yerkes (ayerkes@speakeasy.net) from + * drivers/net/tcpip/include/ticonsts.h + * + * 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 _TCPIOCTL_H +#define _TCPIOCTL_H + +/* TCP/UDP/RawIP IOCTL code definitions */ + +#define FSCTL_TCP_BASE FILE_DEVICE_NETWORK + +#define _TCP_CTL_CODE(Function, Method, Access) \ + CTL_CODE(FSCTL_TCP_BASE, Function, Method, Access) + +#define IOCTL_TCP_QUERY_INFORMATION_EX \ + _TCP_CTL_CODE(0, METHOD_NEITHER, FILE_ANY_ACCESS) + +#define IOCTL_TCP_SET_INFORMATION_EX \ + _TCP_CTL_CODE(1, METHOD_BUFFERED, FILE_WRITE_ACCESS) + +#endif/*_TCPIOCTL_H*/