home *** CD-ROM | disk | FTP | other *** search
/ Datatid 1999 #6 / Datatid_1999-06.iso / internet / Tango352Promo / P.SQL / PTKPKG.1 / GENSTAT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-29  |  9.6 KB  |  276 lines

  1. #if !defined(_GENSTAT_H_INCLUDED)
  2. #define _GENSTAT_H_INCLUDED
  3.  
  4. /*
  5. **  Copyright (c) 1997 Pervasive Software Inc.  All rights reserved.
  6. **
  7. **  genstat.h
  8. **
  9. **  Brendan B. Boerner
  10. **  7/14/97
  11. **
  12. **  Pervasive Software Products status codes.
  13. **
  14. **  Status code equates
  15. **
  16. **     Code range:
  17. **      -100  - -199  ==>  Informative codes
  18. **         1  -  199  ==>  Btrieve Status Codes
  19. **       200  -  399  ==>  XQLP codes
  20. **       400  -  499  ==>  XQLI codes
  21. **       500  -  799  ==>  SQL syntax errors
  22. **       800  -  999  ==>  XQLM execution errors
  23. **      1000  - 1999  ==>  Btrieve Status Codes for OS2
  24. **      2000  - 2099  ==>  Btrieve Interface
  25. **      2100  - 2199  ==>  Scalable SQL Requester status codes
  26. **      2200  - 2299  ==>  Environment specific Scalable SQL status codes
  27. **      2300  - 2399  ==>  Named Database support, etc.
  28. **      2400  - 2499  ==>  Microkernel Interface.
  29. **      2500  - 2699  ==>  Embedded SQL
  30. **      2700  - 2799  ==>  DAL Server
  31. **      2800  - 2899  ==>  SSQL Database Router and EDA Adapter
  32. **      2900  - 2999  ==>  Inscribe engine
  33. **      4000  - 4999  ==>  DBU error codes
  34. **      5000  - 5199  ==>  Internal error codes
  35. **      6000  - ????  ==>  DBS error codes
  36. **      7000  - 7099  ==>  License Manager error codes
  37. **      8000  - 8499  ==>  SCM/AOSS/EventLog error codes
  38. **      8500  - 8589  ==>  ECASAPI error codes
  39. **      8590  - 8599  ==>  W3DBSMGR error codes
  40. **
  41. */
  42.  
  43.  
  44. #define E_FATAL         -1
  45. #define E_NONE          0
  46.  
  47.  
  48. /*
  49. **  SCM/AOSS/EventLog error codes
  50. */
  51.  
  52. /* E_SCM_MEM: error allocating memory */
  53. #define E_SCM_MEM               8001
  54.  
  55. /* E_SCM_CID_NOTFOUND: Component ID string not found. */
  56. #define E_SCM_CID_NOTFOUND      8002
  57.  
  58. /* 
  59. **  E_SCM_W16W32_GPAKERNEL: W16 cannot get address W32 APIs:
  60. **  CallProc32W(), FreeLibrary32W(), GetProcAddress32W()
  61. **  GetVDMPointer32W() or LoadLibraryEx32W
  62. */
  63. #define E_SCM_W16W32_GPAKERNEL  8003
  64.  
  65. /* E_SCM_INV_PLATCALLTYPE: unsupported platform/call type */
  66. #define E_SCM_INV_PLATCALLTYPE  8004
  67.  
  68. /* E_SCM_API_NOTINITED: API not initialized */
  69. #define E_SCM_API_NOTINITED     8005
  70.  
  71. /*
  72. **  E_SCM_MOD_NOTFOUND: cannot operate on module, module not found
  73. **  in ModDir or OS path.
  74. */
  75. #define E_SCM_MOD_NOTFOUND      8006
  76.  
  77. /* E_SCM_W32VERS: error retrieving Win32 version information */
  78. #define E_SCM_W32VERS           8007
  79.  
  80. /*
  81. **  E_SCM_DUP_NOTALLOWED: duplicate platforms, types and versions
  82. **  not allowed.
  83. */
  84. #define E_SCM_DUP_NOTALLOWED    8008
  85.  
  86. /*
  87. **  E_SCM_CID_MISSING_REQEDINFO: Component ID string is missing required
  88. **  information (platform, type, major/minor functional level).
  89. */
  90. #define E_SCM_CID_MISSING_REQEDINFO 8009
  91.  
  92. /* E_SCM_FILE_OPEN: Error opening a file. */
  93. #define E_SCM_FILE_OPEN         8010
  94.  
  95. /* E_SCM_SYM_EXPORT: Error defining export (e.g. #defineDLLEntry()). */
  96. #define E_SCM_SYM_EXPORT        8011
  97.  
  98. /*
  99. **  E_SCM_MISSING_REQEDINFO: Required information is missing (platform
  100. **  type, major/minor functional level).
  101. */
  102. #define E_SCM_MISSING_REQEDINFO 8012
  103.  
  104. /* E_SCM_OPEN_OSDIR: Error locating component. */
  105. #define E_SCM_OPEN_OSDIR        8013
  106.  
  107. /* E_SCM_INFOBASE_READ: Error reading infobase. */
  108. #define E_SCM_INFOBASE_READ     8014
  109.  
  110. /* E_SCM_INFOBASE_WRITE: Error writing infobase. */
  111. #define E_SCM_INFOBASE_WRITE    8015
  112.  
  113. /* E_SCM_INV_INSTANCE: invalid instance specified */
  114. #define E_SCM_INV_INSTANCE      8016
  115.  
  116. /* E_SCM_INV_VERINFO: invalid version info structure */
  117. #define E_SCM_INV_VERINFO       8017
  118.  
  119. /* E_SCM_ITEM_NOTFOUND: item not found. */
  120. #define E_SCM_ITEM_NOTFOUND     8018
  121.  
  122. /* E_SCM_REQ_NOTACCEPTED: Library is not accepting API requests */
  123. #define E_SCM_REQ_NOTACCEPTED   8019
  124.  
  125. /* E_SCM_MOD_LOAD: Error loading module (e.g. LoadLibrary() error) */
  126. #define E_SCM_MOD_LOAD          8020
  127.  
  128. /* E_SCM_MOD_INUSE: module is in use. */
  129. #define E_SCM_MOD_INUSE         8021
  130.  
  131. /* E_SCM_NOTINITED: Component is not inited. */
  132. #define E_SCM_NOTINITED         8022
  133.  
  134. /* E_SCM_INV_FNAME: no file name/invalid file name. */
  135. #define E_SCM_INV_FNAME         8023
  136.  
  137. /* E_SCM_INV_FCNNAME: error importing symbols, invalid function name */
  138. #define E_SCM_INV_FCNNAME       8024
  139.  
  140. /* E_SCM_INST_NOFREE: no free (unused) instances on free list. */
  141. #define E_SCM_INST_NOFREE       8025
  142.  
  143. /* E_SCM_MOD_EXIST: module exists in directory */
  144. #define E_SCM_MOD_EXIST         8026 
  145.  
  146. /* E_SCM_ATTR_MISSING: attribute missing. */
  147. #define E_SCM_ATTR_MISSING      8027
  148.  
  149. /* E_SCM_BUFFERS_MISSING: Required input or output buffers are missing. */
  150. #define E_SCM_BUFFERS_MISSING   8028
  151.  
  152. /* E_SCM_MOD_NOTCLAIMED: module not claimed. */
  153. #define E_SCM_MOD_NOTCLAIMED    8029
  154.  
  155. /* E_SCM_BUFSIZE: return buffer too small */
  156. #define E_SCM_BUFSIZE           8030
  157.  
  158. /* E_SCM_INTERNAL: internal error.  Call Pervasive. */
  159. #define E_SCM_INTERNAL          8031
  160.  
  161. /*
  162. **  E_SCM_INV_CID: a component ID string was found but may be invalid
  163. **  because it is too short, too long or contains funny characters.
  164. */
  165. #define E_SCM_INV_CID           8032
  166.  
  167. /*
  168. **  E_SCM_SYM_IMPORT: Error importing symbol, most likely symbol not
  169. **  exported.
  170. */
  171. #define E_SCM_SYM_IMPORT        8033
  172.  
  173. /* E_SCM_INV_CALLTYPE: unsupported/invalid calltype */
  174. #define E_SCM_INV_CALLTYPE      8034
  175.  
  176. /* E_SCM_INV_API: Unsupported, invalid or un#defined API */
  177. #define E_SCM_INV_API           8035
  178.  
  179. /*
  180. **  E_SCM_INV_VER: major/minor functional level errors.  These include:
  181. **  a) lwr major is greater than upper major, b) lwr minor is greater
  182. **  than upper minor, and c) version is out of range.
  183. */
  184. #define E_SCM_INV_VER           8036
  185.  
  186. /* E_SCM_W16W32_GMHKERNEL: W16 cannot get module handle for W32 Kernel. */
  187. #define E_SCM_W16W32_GMHKERNEL  8037
  188.  
  189. /*
  190. **  E_SCM_WCCOMP: Error compiling wildcard expression for directory
  191. **  scanning.  This error should not occur.
  192. */
  193. #define E_SCM_WCCOMP            8038
  194.  
  195. /* E_SCM_INV_HANDLE: Invalid OS Handle. */
  196. #define E_SCM_INV_HANDLE        8039
  197.  
  198. /* E_SCM_CID_CRC: CRC in CID is not correct. */
  199. #define E_SCM_CID_CRC           8040
  200.  
  201. /* E_SCM_INV_PATH_LENGTH: Invalid Path length. */
  202. #define E_SCM_INV_PATH_LENGTH   8041
  203.  
  204.  
  205. /*
  206. **  EventLog
  207. */
  208.  
  209. #define E_EVENTLOG_NO_ERROR                   E_NONE
  210. #define E_EVENTLOG_INVALID_INSTANCE           E_SCM_INV_INSTANCE
  211. #define E_EVENTLOG_NO_MEMORY                  E_SCM_MEM
  212. #define E_EVENTLOG_INVALID_PATH_LEN           E_SCM_INV_PATH_LENGTH
  213.  
  214. #define E_EVENTLOG_INVALID_TYPE               8200
  215. #define E_EVENTLOG_INVALID_COMPONENT          8201
  216. #define E_EVENTLOG_INVALID_COMPONENT_NAME     8202
  217. #define E_EVENTLOG_INVALID_MESSAGE_FILE       8203
  218. #define E_EVENTLOG_INVALID_CATEGORY_FILE      8204
  219. #define E_EVENTLOG_INVALID_HANDLE             8205
  220. #define E_EVENTLOG_COMPONENT_MISMATCH         8206
  221. #define E_EVENTLOG_COMPONENT_NOT_FOUND        8207
  222. #define E_EVENTLOG_COMPONENT_NAME_EXISTS      8208
  223. #define E_EVENTLOG_MESSAGE_FILE_NOT_FOUND     8209
  224. #define E_EVENTLOG_CATEGORY_FILE_NOT_FOUND    8210
  225. #define E_EVENTLOG_MISSING_MESSAGE_FILE       8211
  226. #define E_EVENTLOG_MISSING_CATEGORY_FILE      8212
  227. #define E_EVENTLOG_BINARY_DATA_TOO_LONG       8213
  228. #define E_EVENTLOG_MESSAGE_TOO_LONG           8214
  229. #define E_EVENTLOG_MESSAGE_NOT_FOUND          8215
  230. #define E_EVENTLOG_CATEGORY_NOT_FOUND         8216
  231. #define E_EVENTLOG_PARAMETER_MISMATCH         8217
  232. #define E_EVENTLOG_WRITE_ERROR                8218
  233.  
  234. /*
  235. **        ECASAPI Error codes  (Keep in sync with definitions in ecasapi.h)
  236. */
  237. #define  ECASAPI_ERROR_BASE                               8500
  238.  
  239. #define  ECASAPI_SUCCESS                                  0
  240. #define  ECASAPI_ERROR_INITIALIZING_SCM                   ECASAPI_ERROR_BASE + 0
  241. #define  ECASAPI_ERROR_LOCATING_UPI_DLL                   ECASAPI_ERROR_BASE + 2
  242. #define  ECASAPI_ERROR_ADDRESS_NOT_FOUND_IN_UPI_DLL       ECASAPI_ERROR_BASE + 3
  243. #define  ECASAPI_ERROR_CREATING_SEMAPHORE                 ECASAPI_ERROR_BASE + 4
  244. #define  ECASAPI_ERROR_OPENING_DBU_SESSION                ECASAPI_ERROR_BASE + 5
  245. #define  ECASAPI_ERROR_LOADING_BTRIEVE_MODULE             ECASAPI_ERROR_BASE + 6
  246. #define  ECASAPI_ERROR_NO_DBU_SESSION                     ECASAPI_ERROR_BASE + 7
  247. #define  ECASAPI_ERROR_ENABLING_BTRIEVE_ACCESS            ECASAPI_ERROR_BASE + 8
  248. #define  ECASAPI_ERROR_BTRIEVE_INIT_TIMEOUT               ECASAPI_ERROR_BASE + 9
  249. #define  ECASAPI_ERROR_LOADING_SSQL_MODULE                ECASAPI_ERROR_BASE + 10
  250. #define  ECASAPI_ERROR_ENABLING_SQL_ACCESS                ECASAPI_ERROR_BASE + 11
  251. #define  ECASAPI_ERROR_SSQL_INIT_TIMEOUT                  ECASAPI_ERROR_BASE + 12
  252. #define  ECASAPI_ERROR_DISABLING_BTRIEVE_ACCESS           ECASAPI_ERROR_BASE + 13
  253. #define  ECASAPI_ERROR_UNLOADING_MKDE_MODULE              ECASAPI_ERROR_BASE + 14
  254. #define  ECASAPI_ERROR_DISABLING_SQL_ACCESS               ECASAPI_ERROR_BASE + 15
  255. #define  ECASAPI_ERROR_UNLOADING_SSQL_MODULE              ECASAPI_ERROR_BASE + 16
  256. #define  ECASAPI_ERROR_CLOSING_DBU_SESSION                ECASAPI_ERROR_BASE + 17
  257. #define  ECASAPI_ERROR_OUT_OF_MEMORY                      ECASAPI_ERROR_BASE + 18
  258.  
  259. #define  ECASAPI_ERRORS_MAX                               19
  260.  
  261. /*
  262. **        DBSMGR Error codes
  263. */
  264. #define  W3DBSMGR_ERROR_BASE                              8590
  265.  
  266. #define  W3DBSMGR_SUCCESS                                 0
  267. #define  W3DBSMGR_ERROR_INITIALIZING_SCM                  W3DBSMGR_ERROR_BASE + 0
  268. #define  W3DBSMGR_ERROR_ALREADY_LOADED                    W3DBSMGR_ERROR_BASE + 1
  269. #define  W3DBSMGR_ERROR_OUT_OF_MEMORY                     W3DBSMGR_ERROR_BASE + 2
  270. #define  W3DBSMGR_ERROR_CREATING_THREAD                   W3DBSMGR_ERROR_BASE + 3
  271.  
  272. #define  W3DBSMGR_ERRORS_MAX                              4
  273.  
  274.  
  275. #endif /* #if !#defined(_GENSTAT_H_INCLUDED) */
  276.