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