Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.9 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows **/
  3. /** Copyright(c) Microsoft Corp., 1993 **/
  4. /**********************************************************************/
  5. /*
  6. wscntl.h
  7. Semi-public include file for the WsControl API in the Chicago/
  8. Snowball Windows Sockets implementation.
  9. FILE HISTORY:
  10. KeithMo 04-Feb-1994 Created.
  11. */
  12. #ifndef _WSCNTL_H_
  13. #define _WSCNTL_H_
  14. //
  15. // Function prototypes.
  16. //
  17. DWORD
  18. FAR PASCAL
  19. WsControl(
  20. DWORD Protocol,
  21. DWORD Action,
  22. LPVOID InputBuffer,
  23. LPDWORD InputBufferLength,
  24. LPVOID OutputBuffer,
  25. LPDWORD OutputBufferLength
  26. );
  27. typedef DWORD (FAR PASCAL * LPWSCONTROL)( DWORD Protocol,
  28. DWORD Action,
  29. LPVOID InputBuffer,
  30. LPDWORD InputBufferLength,
  31. LPVOID OutputBuffer,
  32. LPDWORD OutputBufferLength );
  33. //
  34. // Ws Control action codes.
  35. //
  36. #define WSCNTL_TCPIP_QUERY_INFO 0x00000000
  37. #define WSCNTL_TCPIP_SET_INFO 0x00000001
  38. #define WSCNTL_TCPIP_ICMP_ECHO 0x00000002
  39. #define WSCNTL_TCPIP_TEST 0x00000003
  40. #define WSCNTL_AFD_INFO 0x00000004
  41. #define WSCNTL_AFD_GATHER_RAND 0x00000005
  42. // For WSCNTL_AFD_INFO
  43. // All selections must fit in the mask.
  44. #define WSCNTL_AFD_INFO_MASK 0x0000ffff
  45. #define WSCNTL_AFD_INFO_LOCK 0x00000001
  46. #define WSCNTL_AFD_INFO_SOCK 0x00000002
  47. #define WSCNTL_AFD_INFO_CONN 0x00000004
  48. #define WSCNTL_AFD_INFO_ENDP 0x00000008
  49. #define WSCNTL_AFD_INFO_BUFFER 0x00000010
  50. #define WSCNTL_AFD_IRDA_INFO 0x00000020
  51. #define WSCNTL_AFD_CXPORT_INFO 0x00000040
  52. // Option bits.
  53. #define WSCNTL_AFD_INFO_VERBOSE 0x80000000
  54. #endif // _WSCNTL_H_