home *** CD-ROM | disk | FTP | other *** search
/ Steganos Hacker Tools / SHT151.iso / programme / scanner / nmapNTsp1 / Win_2000.exe / nmapNT-src / nmapNT / Devioctl.h next >
Encoding:
C/C++ Source or Header  |  1999-12-24  |  4.7 KB  |  112 lines

  1. /* Netmeter V2.0
  2.  
  3. Copyright (C) 1999 Politecnico di Torino
  4.   
  5. This file is part of the Packet Capture Driver Developer's Pack.
  6.     
  7. This library is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU Lesser General Public
  9. License as published by the Free Software Foundation; either
  10. version 2 of the License, or (at your option) any later version.
  11.  
  12. This library is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. Lesser General Public License for more details.
  16.         
  17. You should have received a copy of the GNU Lesser General Public
  18. License along with this library; if not, write to the Free Software
  19. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  20. */
  21.  
  22. /*++ BUILD Version: 0004    // Increment this if a change has global effects
  23.    Copyright (c) 1992-1993  Microsoft Corporation
  24.    Module Name:
  25.    devioctl.h
  26.    Revision History:
  27.    -- */
  28. // begin_winioctl
  29. #ifndef _DEVIOCTL_
  30. #define _DEVIOCTL_
  31. // begin_ntddk begin_nthal begin_ntifs
  32. //
  33. // Define the various device type values.  Note that values used by Microsoft
  34. // Corporation are in the range 0-32767, and 32768-65535 are reserved for use
  35. // by customers.
  36. //
  37. #define DEVICE_TYPE ULONG
  38. #define FILE_DEVICE_BEEP                0x00000001
  39. #define FILE_DEVICE_CD_ROM              0x00000002
  40. #define FILE_DEVICE_CD_ROM_FILE_SYSTEM  0x00000003
  41. #define FILE_DEVICE_CONTROLLER          0x00000004
  42. #define FILE_DEVICE_DATALINK            0x00000005
  43. #define FILE_DEVICE_DFS                 0x00000006
  44. #define FILE_DEVICE_DISK                0x00000007
  45. #define FILE_DEVICE_DISK_FILE_SYSTEM    0x00000008
  46. #define FILE_DEVICE_FILE_SYSTEM         0x00000009
  47. #define FILE_DEVICE_INPORT_PORT         0x0000000a
  48. #define FILE_DEVICE_KEYBOARD            0x0000000b
  49. #define FILE_DEVICE_MAILSLOT            0x0000000c
  50. #define FILE_DEVICE_MIDI_IN             0x0000000d
  51. #define FILE_DEVICE_MIDI_OUT            0x0000000e
  52. #define FILE_DEVICE_MOUSE               0x0000000f
  53. #define FILE_DEVICE_MULTI_UNC_PROVIDER  0x00000010
  54. #define FILE_DEVICE_NAMED_PIPE          0x00000011
  55. #define FILE_DEVICE_NETWORK             0x00000012
  56. #define FILE_DEVICE_NETWORK_BROWSER     0x00000013
  57. #define FILE_DEVICE_NETWORK_FILE_SYSTEM 0x00000014
  58. #define FILE_DEVICE_NULL                0x00000015
  59. #define FILE_DEVICE_PARALLEL_PORT       0x00000016
  60. #define FILE_DEVICE_PHYSICAL_NETCARD    0x00000017
  61. #define FILE_DEVICE_PRINTER             0x00000018
  62. #define FILE_DEVICE_SCANNER             0x00000019
  63. #define FILE_DEVICE_SERIAL_MOUSE_PORT   0x0000001a
  64. #define FILE_DEVICE_SERIAL_PORT         0x0000001b
  65. #define FILE_DEVICE_SCREEN              0x0000001c
  66. #define FILE_DEVICE_SOUND               0x0000001d
  67. #define FILE_DEVICE_STREAMS             0x0000001e
  68. #define FILE_DEVICE_TAPE                0x0000001f
  69. #define FILE_DEVICE_TAPE_FILE_SYSTEM    0x00000020
  70. #define FILE_DEVICE_TRANSPORT           0x00000021
  71. #define FILE_DEVICE_UNKNOWN             0x00000022
  72. #define FILE_DEVICE_VIDEO               0x00000023
  73. #define FILE_DEVICE_VIRTUAL_DISK        0x00000024
  74. #define FILE_DEVICE_WAVE_IN             0x00000025
  75. #define FILE_DEVICE_WAVE_OUT            0x00000026
  76. #define FILE_DEVICE_8042_PORT           0x00000027
  77. #define FILE_DEVICE_NETWORK_REDIRECTOR  0x00000028
  78. #define FILE_DEVICE_BATTERY             0x00000029
  79. #define FILE_DEVICE_BUS_EXTENDER        0x0000002a
  80. #define FILE_DEVICE_MODEM               0x0000002b
  81. #define FILE_DEVICE_VDM                 0x0000002c
  82. #define FILE_DEVICE_MASS_STORAGE        0x0000002d
  83. //
  84. // Macro definition for defining IOCTL and FSCTL function control codes.  Note
  85. // that function codes 0-2047 are reserved for Microsoft Corporation, and
  86. // 2048-4095 are reserved for customers.
  87. //
  88. #define CTL_CODE( DeviceType, Function, Method, Access ) (                 \
  89.     ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) \
  90. )
  91. //
  92. // Define the method codes for how buffers are passed for I/O and FS controls
  93. //
  94. #define METHOD_BUFFERED                 0
  95. #define METHOD_IN_DIRECT                1
  96. #define METHOD_OUT_DIRECT               2
  97. #define METHOD_NEITHER                  3
  98. //
  99. // Define the access check value for any access
  100. //
  101. //
  102. // The FILE_READ_ACCESS and FILE_WRITE_ACCESS constants are also defined in
  103. // ntioapi.h as FILE_READ_DATA and FILE_WRITE_DATA. The values for these
  104. // constants *MUST* always be in sync.
  105. //
  106. #define FILE_ANY_ACCESS                 0
  107. #define FILE_READ_ACCESS          ( 0x0001 )    // file & pipe
  108. #define FILE_WRITE_ACCESS         ( 0x0002 )    // file & pipe
  109. // end_ntddk end_nthal end_ntifs
  110. #endif                // _DEVIOCTL_
  111. // end_winioctl
  112.