home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual Foxpro 6.0 (Ent. Edition) / Vf6ent Extractor.EXE / FFC / REGISTRY.H < prev    next >
Encoding:
Text File  |  1998-05-26  |  2.8 KB  |  80 lines

  1. *- Registry.h
  2. *- Copyright (c) 1997 Microsoft Corporation
  3.  
  4. * Operating System codes
  5. #DEFINE    OS_W32S                1
  6. #DEFINE    OS_NT                2
  7. #DEFINE    OS_WIN95            3
  8. #DEFINE    OS_MAC                4
  9. #DEFINE    OS_DOS                5
  10. #DEFINE    OS_UNIX                6
  11.  
  12. * DLL Paths for various operating systems
  13. #DEFINE DLLPATH_NT            "\SYSTEM32\"
  14. #DEFINE DLLPATH_WIN95        "\SYSTEM\"
  15.  
  16. * DLL files used to read INI files
  17. #DEFINE    DLL_KERNEL_NT        "KERNEL32.DLL"
  18. #DEFINE    DLL_KERNEL_WIN95    "KERNEL32.DLL"
  19.  
  20. * DLL files used to read registry
  21. #DEFINE    DLL_ADVAPI_NT        "ADVAPI32.DLL"
  22. #DEFINE    DLL_ADVAPI_WIN95    "ADVAPI32.DLL"
  23.  
  24. * DLL files used to read ODBC info
  25. #DEFINE DLL_ODBC_NT            "ODBC32.DLL"
  26. #DEFINE DLL_ODBC_WIN95        "ODBC32.DLL"
  27.  
  28. * Registry roots
  29. #DEFINE HKEY_CLASSES_ROOT           -2147483648  && BITSET(0,31)
  30. #DEFINE HKEY_CURRENT_USER           -2147483647  && BITSET(0,31)+1
  31. #DEFINE HKEY_LOCAL_MACHINE          -2147483646  && BITSET(0,31)+2
  32. #DEFINE HKEY_USERS                  -2147483645  && BITSET(0,31)+3
  33.  
  34. * Misc
  35. #DEFINE APP_PATH_KEY        "\Shell\Open\Command"
  36. #DEFINE OLE_PATH_KEY        "\Protocol\StdFileEditing\Server"
  37. #DEFINE VFP_OPTIONS_KEY1    "Software\Microsoft\VisualFoxPro\"
  38. #DEFINE VFP_OPTIONS_KEY2    "\Options"
  39. #DEFINE CURVER_KEY            "\CurVer"
  40. #DEFINE ODBC_DATA_KEY        "Software\ODBC\ODBC.INI\"
  41. #DEFINE ODBC_DRVRS_KEY        "Software\ODBC\ODBCINST.INI\"
  42. #DEFINE SQL_FETCH_NEXT        1
  43. #DEFINE SQL_NO_DATA            100
  44.  
  45. * Error Codes
  46. #DEFINE ERROR_SUCCESS        0    && OK
  47. #DEFINE ERROR_EOF             259 && no more entries in key
  48.  
  49. * Note these next error codes are specific to this Class, not DLL
  50. #DEFINE ERROR_NOAPIFILE        -101    && DLL file to check registry not found
  51. #DEFINE ERROR_KEYNOREG        -102    && key not registered
  52. #DEFINE ERROR_BADPARM        -103    && bad parameter passed
  53. #DEFINE ERROR_NOENTRY        -104    && entry not found
  54. #DEFINE    ERROR_BADKEY        -105    && bad key passed
  55. #DEFINE    ERROR_NONSTR_DATA    -106    && data type for value is not a data string
  56. #DEFINE ERROR_BADPLAT        -107    && platform not supported
  57. #DEFINE ERROR_NOINIFILE        -108    && DLL file to check INI not found
  58. #DEFINE ERROR_NOINIENTRY    -109    && No entry in INI file
  59. #DEFINE ERROR_FAILINI        -110    && failed to get INI entry
  60. #DEFINE ERROR_NOPLAT        -111    && call not supported on this platform
  61. #DEFINE ERROR_NOODBCFILE    -112    && DLL file to check ODBC not found
  62. #DEFINE ERROR_ODBCFAIL        -113    && failed to get ODBC environment
  63.  
  64. * Data types for keys
  65. #DEFINE REG_SZ                 1    && Data string
  66. #DEFINE REG_EXPAND_SZ         2    && Unicode string
  67. #DEFINE REG_BINARY             3    && Binary data in any form.
  68. #DEFINE REG_DWORD             4    && A 32-bit number.
  69.  
  70. * Data types labels
  71. #DEFINE REG_BINARY_LOC        "*Binary*"            && Binary data in any form.
  72. #DEFINE REG_DWORD_LOC         "*Dword*"            && A 32-bit number.
  73. #DEFINE REG_UNKNOWN_LOC        "*Unknown type*"    && unknown type
  74.  
  75. * FoxPro ODBC drivers
  76. #DEFINE FOXODBC_25            "FoxPro Files (*.dbf)"
  77. #DEFINE FOXODBC_26            "Microsoft FoxPro Driver (*.dbf)"
  78. #DEFINE FOXODBC_30            "Microsoft Visual FoxPro Driver"
  79.  
  80.