home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual Foxpro 6.0 (Ent. Edition) / Vf6ent Extractor.EXE / TOOLS / XSOURCE / XSOURCE.ZIP / vfpsource / Coverage / COV_REGS.H < prev    next >
Encoding:
Text File  |  1998-05-01  |  3.3 KB  |  80 lines

  1. * COV_REG.H
  2. * constants for Coverage Standard UI app registry object
  3. * constant list and procs excerpted from REGISTRY.PRG
  4. * Copyright (c) 1995,1996 Sierra Systems, Microsoft Corporation
  5. *
  6. * Written by Randy Brown
  7. * Contributions from Matt Oshry, Calvin Hsia
  8. * Delivered as a PRG sample in VFP 5
  9. *
  10. * Randy's Registry class provides a complete library of API
  11. * calls to access the Windows Registry. Support is provided
  12. * for Windows 32S, Windows NT amd Windows 95. Included for
  13. * backward compatibility with older applications which still
  14. * use INI files are several routines which access INI sections
  15. * and details. Finally, several valuable routines are included
  16. * for accessing ODBC drivers and data sources.
  17. *
  18.  
  19. * The Coverage registry object is a lightweight
  20. * version that subsets Randy's Registry functionality
  21. * and adds some VFP6- and Coverage- specific items.
  22.  
  23. * Operating System codes
  24. #DEFINE   OS_NT            2
  25. #DEFINE   OS_WIN95         3
  26.  
  27. * DLL Paths for various operating systems
  28. #DEFINE DLLPATH_NT         "\SYSTEM32\"
  29. #DEFINE DLLPATH_WIN95      "\SYSTEM\"
  30.  
  31. * DLL files used to read registry
  32. #DEFINE   DLL_ADVAPI_NT      "ADVAPI32.DLL"
  33. #DEFINE   DLL_ADVAPI_WIN95   "ADVAPI32.DLL"
  34.  
  35. * Registry roots
  36. #DEFINE HKEY_CLASSES_ROOT           -2147483648  && BITSET(0,31)
  37. #DEFINE HKEY_CURRENT_USER           -2147483647  && BITSET(0,31)+1
  38. #DEFINE HKEY_LOCAL_MACHINE          -2147483646  && BITSET(0,31)+2
  39. #DEFINE HKEY_USERS                  -2147483645  && BITSET(0,31)+3
  40.  
  41. * Misc
  42. #DEFINE APP_PATH_KEY                "\Shell\Open\Command"
  43. #DEFINE OLE_PATH_KEY                "\Protocol\StdFileEditing\Server"
  44. #DEFINE VFP5_KEYPATH                "Software\Microsoft\VisualFoxPro\5.0"
  45. #DEFINE VFP6_KEYPATH                "Software\Microsoft\VisualFoxPro\6.0"
  46. #DEFINE VFP_COVERAGE_KEY            "\Coverage"
  47. #DEFINE VFP_OPTIONS_KEY             "\Options"
  48. #DEFINE CURVER_KEY                  "\CurVer"
  49.  
  50. * Error Codes
  51. #DEFINE ERROR_SUCCESS      0   && OK
  52. #DEFINE ERROR_EOF          259 && no more entries in key
  53.  
  54. * Note these next error codes are specific to this Class, not DLL
  55. #DEFINE ERROR_NOAPIFILE      -101   && DLL file to check registry not found
  56. #DEFINE ERROR_KEYNOREG       -102   && key not registered
  57. #DEFINE ERROR_BADPARM        -103   && bad parameter passed
  58. #DEFINE ERROR_NOENTRY        -104   && entry not found
  59. #DEFINE ERROR_BADKEY         -105   && bad key passed
  60. #DEFINE ERROR_NONSTR_DATA    -106   && data type for value is not a data string
  61. #DEFINE ERROR_BADPLAT        -107   && platform not supported
  62. #DEFINE ERROR_NOINIFILE      -108   && DLL file to check INI not found
  63. #DEFINE ERROR_NOINIENTRY     -109   && No entry in INI file
  64. #DEFINE ERROR_FAILINI        -110   && failed to get INI entry
  65. #DEFINE ERROR_NOPLAT         -111   && call not supported on this platform
  66. #DEFINE ERROR_NOODBCFILE     -112   && DLL file to check ODBC not found
  67. #DEFINE ERROR_ODBCFAIL       -113   && failed to get ODBC environment
  68.  
  69. * Data types for keys
  70. #DEFINE REG_SZ             1   && Data string
  71. #DEFINE REG_BINARY         3   && Binary data in any form.
  72. #DEFINE REG_DWORD          4   && A 32-bit number.
  73.  
  74. * Data types labels
  75. #DEFINE REG_BINARY_LOC      "*Binary*"         && Binary data in any form.
  76. #DEFINE REG_DWORD_LOC       "*Dword*"         && A 32-bit number.
  77. #DEFINE REG_UNKNOWN_LOC      "*Unknown type*"   && unknown type
  78.  
  79.  
  80.