home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / bherr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  24.9 KB  |  595 lines

  1.  
  2. //=============================================================================
  3. //  Microsoft (R) Bloodhound (tm). Copyright (C) 1991-1992.
  4. //
  5. //  MODULE: bherr.h
  6. //
  7. //  This is the top-level include file for all BLOODHOUND error codes
  8. //=============================================================================
  9.  
  10. #if !defined(_BHERR_)
  11. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  12.  
  13. #define _BHERR_
  14.  
  15. //=============================================================================
  16. //  The operation succeeded.
  17. //=============================================================================
  18.  
  19. #define BHERR_SUCCESS                        0
  20.  
  21. //=============================================================================
  22. //  An error occured creating a memory-mapped file.
  23. //=============================================================================
  24.  
  25. #define BHERR_MEMORY_MAPPED_FILE_ERROR       1
  26.  
  27. //=============================================================================
  28. //  The handle to a filter is invalid.
  29. //=============================================================================
  30.  
  31. #define BHERR_INVALID_HFILTER                2
  32.  
  33. //=============================================================================
  34. //  Capturing has already been started.
  35. //=============================================================================
  36.  
  37. #define BHERR_CAPTURING                      3
  38.  
  39. //=============================================================================
  40. //  Capturing has not been started.
  41. //=============================================================================
  42.  
  43. #define BHERR_NOT_CAPTURING                  4
  44.  
  45. //=============================================================================
  46. //  The are no frames available.
  47. //=============================================================================
  48.  
  49. #define BHERR_NO_MORE_FRAMES                 5
  50.  
  51. //=============================================================================
  52. //  The buffer is too small to complete the operation.
  53. //=============================================================================
  54.  
  55. #define BHERR_BUFFER_TOO_SMALL               6
  56.  
  57. //=============================================================================
  58. //  No protocol was able to recognize the frame.
  59. //=============================================================================
  60.  
  61. #define BHERR_FRAME_NOT_RECOGNIZED           7
  62.  
  63. //=============================================================================
  64. //  The file already exists.
  65. //=============================================================================
  66.  
  67. #define BHERR_FILE_ALREADY_EXISTS            8
  68.  
  69. //=============================================================================
  70. //  A needed device driver was not found or is not loaded.
  71. //=============================================================================
  72.  
  73. #define BHERR_DRIVER_NOT_FOUND               9
  74.  
  75. //=============================================================================
  76. //  This address aready exists in the database.
  77. //=============================================================================
  78.  
  79. #define BHERR_ADDRESS_ALREADY_EXISTS         10
  80.  
  81. //=============================================================================
  82. //  The frame handle is invalid.
  83. //=============================================================================
  84.  
  85. #define BHERR_INVALID_HFRAME                 11
  86.  
  87. //=============================================================================
  88. //  The protocol handle is invalid.
  89. //=============================================================================
  90.  
  91. #define BHERR_INVALID_HPROTOCOL              12
  92.  
  93. //=============================================================================
  94. //  The property handle is invalid.
  95. //=============================================================================
  96.  
  97. #define BHERR_INVALID_HPROPERTY              13
  98.  
  99. //=============================================================================
  100. //  The the object has been locked.  
  101. //=============================================================================
  102.  
  103. #define BHERR_LOCKED                         14
  104.  
  105. //=============================================================================
  106. //  A pop operation was attempted on an empty stack.
  107. //=============================================================================
  108.  
  109. #define BHERR_STACK_EMPTY                    15
  110.  
  111. //=============================================================================
  112. //  A push operation was attempted on an full stack.
  113. //=============================================================================
  114.  
  115. #define BHERR_STACK_OVERFLOW                 16
  116.  
  117. //=============================================================================
  118. //  There are too many protocols active.
  119. //=============================================================================
  120.  
  121. #define BHERR_TOO_MANY_PROTOCOLS             17
  122.  
  123. //=============================================================================
  124. //  The file was not found.
  125. //=============================================================================
  126.  
  127. #define BHERR_FILE_NOT_FOUND                 18
  128.  
  129. //=============================================================================
  130. //  No memory was available.  Shut down windows to free up resources.
  131. //=============================================================================
  132.  
  133. #define BHERR_OUT_OF_MEMORY                  19
  134.  
  135. //=============================================================================
  136. //  The capture is already in the paused state.
  137. //=============================================================================
  138.  
  139. #define BHERR_CAPTURE_PAUSED                 20
  140.  
  141. //=============================================================================
  142. //  There are no buffers available or present.
  143. //=============================================================================
  144.  
  145. #define BHERR_NO_BUFFERS                     21
  146.  
  147. //=============================================================================
  148. //  There are already buffers present.
  149. //=============================================================================
  150.  
  151. #define BHERR_BUFFERS_ALREADY_EXIST          22
  152.  
  153. //=============================================================================
  154. //  The object is not locked.
  155. //=============================================================================
  156.  
  157. #define BHERR_NOT_LOCKED                     23
  158.  
  159. //=============================================================================
  160. //  A integer type was out of range.
  161. //=============================================================================
  162.  
  163. #define BHERR_OUT_OF_RANGE                   24
  164.  
  165. //=============================================================================
  166. //  An object was locked too many times.
  167. //=============================================================================
  168.  
  169. #define BHERR_LOCK_NESTING_TOO_DEEP          25
  170.  
  171. //=============================================================================
  172. //  A parser failed to load.
  173. //=============================================================================
  174.  
  175. #define BHERR_LOAD_PARSER_FAILED             26
  176.  
  177. //=============================================================================
  178. //  A parser failed to unload.
  179. //=============================================================================
  180.  
  181. #define BHERR_UNLOAD_PARSER_FAILED          27
  182.  
  183. //=============================================================================
  184. //  The address database handle is invalid.
  185. //=============================================================================
  186.  
  187. #define BHERR_INVALID_HADDRESSDB             28
  188.  
  189. //=============================================================================
  190. //  The MAC address was not found in the database.
  191. //=============================================================================
  192.  
  193. #define BHERR_ADDRESS_NOT_FOUND              29
  194.  
  195. //=============================================================================
  196. //  The network software was not found in the system.
  197. //=============================================================================
  198.  
  199. #define BHERR_NETWORK_NOT_PRESENT            30
  200.  
  201. //=============================================================================
  202. //  There is no property database for a protocol.
  203. //=============================================================================
  204.  
  205. #define BHERR_NO_PROPERTY_DATABASE           31
  206.  
  207. //=============================================================================
  208. //  A property was not found in the database.
  209. //=============================================================================
  210.  
  211. #define BHERR_PROPERTY_NOT_FOUND             32
  212.  
  213. //=============================================================================
  214. //  The property database handle is in valid.
  215. //=============================================================================
  216.  
  217. #define BHERR_INVALID_HPROPERTYDB            33
  218.  
  219. //=============================================================================
  220. //  The protocol has not been enabled.
  221. //=============================================================================
  222.  
  223. #define BHERR_PROTOCOL_NOT_ENABLED          34
  224.  
  225. //=============================================================================
  226. //  The protocol DLL could not be found.
  227. //=============================================================================
  228.  
  229. #define BHERR_PROTOCOL_NOT_FOUND            35
  230.  
  231. //=============================================================================
  232. //  The parser DLL is not valid.
  233. //=============================================================================
  234.  
  235. #define BHERR_INVALID_PARSER_DLL            36
  236.  
  237. //=============================================================================
  238. //  There are no properties attached.
  239. //=============================================================================
  240.  
  241. #define BHERR_NO_ATTACHED_PROPERTIES         37
  242.  
  243. //=============================================================================
  244. //  There are no frames in the buffer.
  245. //=============================================================================
  246.  
  247. #define BHERR_NO_FRAMES                      38
  248.  
  249. //=============================================================================
  250. //  The capture file format is not valid.
  251. //=============================================================================
  252.  
  253. #define BHERR_INVALID_FILE_FORMAT            39
  254.  
  255. //=============================================================================
  256. //  The OS could not create a temporary file.
  257. //=============================================================================
  258.  
  259. #define BHERR_COULD_NOT_CREATE_TEMPFILE      40
  260.  
  261. //=============================================================================
  262. //  There is not enough MS-DOS memory available.
  263. //=============================================================================
  264.  
  265. #define BHERR_OUT_OF_DOS_MEMORY              41
  266.  
  267. //=============================================================================
  268. //  There are no protocols enabled.
  269. //=============================================================================
  270.  
  271. #define BHERR_NO_PROTOCOLS_ENABLED           42
  272.  
  273. //=============================================================================
  274. //  The MAC type is invalid or unsupported.
  275. //=============================================================================
  276.  
  277. #define BHERR_UNKNOWN_MACTYPE                46
  278.  
  279. //=============================================================================
  280. //  There is no routing information present in the MAC frame.
  281. //=============================================================================
  282.  
  283. #define BHERR_ROUTING_INFO_NOT_PRESENT       47
  284.  
  285. //=============================================================================
  286. //  The network handle is invalid.
  287. //=============================================================================
  288.  
  289. #define BHERR_INVALID_HNETWORK               48
  290.  
  291. //=============================================================================
  292. //  The network is already open.
  293. //=============================================================================
  294.  
  295. #define BHERR_NETWORK_ALREADY_OPENED         49
  296.  
  297. //=============================================================================
  298. //  The network is not open.
  299. //=============================================================================
  300.  
  301. #define BHERR_NETWORK_NOT_OPENED             50
  302.  
  303. //=============================================================================
  304. //  The frame was not found in the buffer.
  305. //=============================================================================
  306.  
  307. #define BHERR_FRAME_NOT_FOUND                51
  308.  
  309. //=============================================================================
  310. //  There are no handles available.
  311. //=============================================================================
  312.  
  313. #define BHERR_NO_HANDLES                     53
  314.  
  315. //=============================================================================
  316. //  The network ID is invalid.
  317. //=============================================================================
  318.  
  319. #define BHERR_INVALID_NETWORK_ID             54
  320.  
  321. //=============================================================================
  322. //  The capture handle is invalid.
  323. //=============================================================================
  324.  
  325. #define BHERR_INVALID_HCAPTURE               55
  326.  
  327. //=============================================================================
  328. //  The protocol has already been enabled.
  329. //=============================================================================
  330.  
  331. #define BHERR_PROTOCOL_ALREADY_ENABLED       56
  332.  
  333. //=============================================================================
  334. //  The filter expression is invalid.
  335. //=============================================================================
  336.  
  337. #define BHERR_FILTER_INVALID_EXPRESSION      57
  338.  
  339. //=============================================================================
  340. //  A transmit error occured.
  341. //=============================================================================
  342.  
  343. #define BHERR_TRANSMIT_ERROR                 58
  344.  
  345. //=============================================================================
  346. //  The buffer handle is invalid.
  347. //=============================================================================
  348.  
  349. #define BHERR_INVALID_HBUFFER                59
  350.  
  351. //=============================================================================
  352. //  The specified data is unknown or invalid.
  353. //=============================================================================
  354.  
  355. #define BHERR_INVALID_DATA                   60
  356.  
  357. //=============================================================================
  358. //  The MS-DOS/NDIS 2.0 network driver is not loaded.
  359. //=============================================================================
  360.  
  361. #define BHERR_MSDOS_DRIVER_NOT_LOADED        61
  362.  
  363. //=============================================================================
  364. //  The Windows VxD/NDIS 3.0 network driver is not loaded.
  365. //=============================================================================
  366.  
  367. #define BHERR_WINDOWS_DRIVER_NOT_LOADED      62
  368.  
  369. //=============================================================================
  370. //  The MS-DOS/NDIS 2.0 driver had an init-time failure.
  371. //=============================================================================
  372.  
  373. #define BHERR_MSDOS_DRIVER_INIT_FAILURE      63
  374.  
  375. //=============================================================================
  376. //  The Windows/NDIS 3.0 driver had an init-time failure.
  377. //=============================================================================
  378.  
  379. #define BHERR_WINDOWS_DRIVER_INIT_FAILURE    64
  380.  
  381. //=============================================================================
  382. //  The network driver is busy and cannot handle requests.
  383. //=============================================================================
  384.  
  385. #define BHERR_NETWORK_BUSY                   65
  386.  
  387. //=============================================================================
  388. //  The capture is not paused.
  389. //=============================================================================
  390.  
  391. #define BHERR_CAPTURE_NOT_PAUSED             66
  392.  
  393. //=============================================================================
  394. //  The frame/packet length is not valid.
  395. //=============================================================================
  396.  
  397. #define BHERR_INVALID_PACKET_LENGTH          67
  398.  
  399. //=============================================================================
  400. //  An internal exception occured.
  401. //=============================================================================
  402.  
  403. #define BHERR_INTERNAL_EXCEPTION             69
  404.  
  405. //=============================================================================
  406. //  The MAC driver does not support promiscious mode.
  407. //=============================================================================
  408.  
  409. #define BHERR_PROMISCUOUS_MODE_NOT_SUPPORTED 70
  410.  
  411. //=============================================================================
  412. //  The MAC driver failed to open.
  413. //=============================================================================
  414.  
  415. #define BHERR_MAC_DRIVER_OPEN_FAILURE        71
  416.  
  417. //=============================================================================
  418. //  The protocol went off the end of the frame.
  419. //=============================================================================
  420.  
  421. #define BHERR_RUNAWAY_PROTOCOL               72
  422.  
  423. //=============================================================================
  424. //  An asynchronous operation is still pending.
  425. //=============================================================================
  426.  
  427. #define BHERR_PENDING                        73
  428.  
  429. //=============================================================================
  430. //  Access is denied.
  431. //=============================================================================
  432.  
  433. #define BHERR_ACCESS_DENIED                  74
  434.  
  435. //=============================================================================
  436. //  The password handle is invalid.
  437. //=============================================================================
  438.  
  439. #define BHERR_INVALID_HPASSWORD              75
  440.  
  441. //=============================================================================
  442. //  A bad parameter was detected.
  443. //=============================================================================
  444.  
  445. #define BHERR_INVALID_PARAMETER              76
  446.  
  447. //=============================================================================
  448. //  An error occured reading the file.
  449. //=============================================================================
  450.  
  451. #define BHERR_FILE_READ_ERROR                77
  452.  
  453. //=============================================================================
  454. //  An error occured writing to the file.
  455. //=============================================================================
  456.  
  457. #define BHERR_FILE_WRITE_ERROR               78
  458.  
  459. //=============================================================================
  460. //  The protocol has not been registered
  461. //=============================================================================
  462.  
  463. #define BHERR_PROTOCOL_NOT_REGISTERED        79
  464.  
  465. //=============================================================================
  466. //  The frame does not contain an IP address.
  467. //=============================================================================
  468.  
  469. #define BHERR_IP_ADDRESS_NOT_FOUND           80
  470.  
  471. //=============================================================================
  472. //  The transmit request was cancelled.
  473. //=============================================================================
  474.  
  475. #define BHERR_TRANSMIT_CANCELLED             81
  476.  
  477. //=============================================================================
  478. //  The operation cannot be performed on a capture with 1 or more locked frames.
  479. //=============================================================================
  480.  
  481. #define BHERR_LOCKED_FRAMES                  82
  482.  
  483. //=============================================================================
  484. //  A cancel transmit request was submitted but there were no transmits pending.
  485. //=============================================================================
  486.  
  487. #define BHERR_NO_TRANSMITS_PENDING           83
  488.  
  489. //=============================================================================
  490. //  Path not found.
  491. //=============================================================================
  492.  
  493. #define BHERR_PATH_NOT_FOUND                 84
  494.  
  495. //=============================================================================
  496. //  A windows error has occured.
  497. //=============================================================================
  498.  
  499. #define BHERR_WINDOWS_ERROR                  85
  500.  
  501. //=============================================================================
  502. //  The handle to the frame has no frame number.
  503. //=============================================================================
  504.  
  505. #define BHERR_NO_FRAME_NUMBER                86
  506.  
  507. //=============================================================================
  508. //  The frame is not associated with any capture.
  509. //=============================================================================
  510.  
  511. #define BHERR_FRAME_HAS_NO_CAPTURE           87
  512.  
  513. //=============================================================================
  514. //  The frame is already associated with a capture.
  515. //=============================================================================
  516.  
  517. #define BHERR_FRAME_ALREADY_HAS_CAPTURE      88
  518.  
  519. //=============================================================================
  520. //  The NAL is not remotable.
  521. //=============================================================================
  522.  
  523. #define BHERR_NAL_IS_NOT_REMOTE              89
  524.  
  525. //=============================================================================
  526. //  The API is not supported
  527. //=============================================================================
  528.  
  529. #define BHERR_NOT_SUPPORTED                  90
  530.  
  531. //=============================================================================
  532. //  Bloodhound should discard the current frame. This error code is only used
  533. //  duing a filterd SaveCapture() API call.
  534. //=============================================================================
  535.  
  536. #define BHERR_DISCARD_FRAME                  91
  537.  
  538. //=============================================================================
  539. //  Bloodhound should cancel the current save. This error code is only used
  540. //  duing a filterd SaveCapture() API call.
  541. //=============================================================================
  542.  
  543. #define BHERR_CANCEL_SAVE_CAPTURE            92
  544.  
  545. //=============================================================================
  546. //  The connection to the remote machine has been lost
  547. //=============================================================================
  548.  
  549. #define BHERR_LOST_CONNECTION                93
  550.  
  551. //=============================================================================
  552. //  The media/mac type is not valid.
  553. //=============================================================================
  554.  
  555. #define BHERR_INVALID_MEDIA_TYPE             94
  556.  
  557. //=============================================================================
  558. //  The Remote Agent is currently in use
  559. //=============================================================================
  560.  
  561. #define BHERR_AGENT_IN_USE                   95
  562.  
  563. //=============================================================================
  564. //  The request has timed out
  565. //=============================================================================
  566.  
  567. #define BHERR_TIMEOUT                        96
  568.  
  569. //=============================================================================
  570. //  The remote agent has been disconnected
  571. //=============================================================================
  572.  
  573. #define BHERR_DISCONNECTED                   97
  574.  
  575. //=============================================================================
  576. //  A timer required for operation failed creation
  577. //=============================================================================
  578.  
  579. #define BHERR_SETTIMER_FAILED                98
  580.  
  581. //=============================================================================
  582. //  A network error occured.
  583. //=============================================================================
  584.  
  585. #define BHERR_NETWORK_ERROR                  99
  586.  
  587. //=============================================================================
  588. //  The capture file is an uplevel version that this netmon does not understand
  589. //=============================================================================
  590.  
  591. #define BHERR_UPLEVEL_CAPTURE_FILE           113
  592.  
  593. #pragma option pop /*P_O_Pop*/
  594. #endif
  595.