home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 June / PCWorld_2002-06_cd.bin / Software / Komercni / xbase / express / exd17208.r04 / exp17 / Include / Dcreg.ch < prev    next >
Text File  |  2002-01-30  |  3KB  |  66 lines

  1. /*
  2.    Program..: DCREG.CH
  3.    Author...: Roger Donnay
  4.    Notice...: (c) DONNAY Software Designs 1987-2000
  5.    Date.....: Apr 5, 2000
  6.    Notes....: Special Registry definitions - Thanks Boris Borzic
  7. */
  8.  
  9.  
  10. #define HKEY_NO_KEY              0x00000000
  11. #define HKEY_CLASSES_ROOT        0x80000000
  12. #define HKEY_CURRENT_USER        0x80000001
  13. #define HKEY_LOCAL_MACHINE       0x80000002
  14. #define HKEY_USERS               0x80000003
  15.  
  16. #define KEY_QUERY_VALUE          0x00001
  17. #define KEY_SET_VALUE            0x00002
  18. #define KEY_CREATE_SUB_KEY       0x00004
  19. #define KEY_ENUMERATE_SUB_KEYS   0x00008
  20. #define KEY_NOTIFY               0x00010
  21. #define KEY_CREATE_LINK          0x00020
  22.  
  23. #define KEY_ALL_ACCESS           0x2003F   // (sum of all above)
  24.  
  25. #define REG_NONE                        0  // No value type
  26. #define REG_SZ                          1  // Unicode nul terminated string
  27. #define REG_EXPAND_SZ                   2  // Unicode nul terminated string
  28.                                            // (with environment variable references)
  29. #define REG_BINARY                      3  // Free form binary
  30. #define REG_DWORD                       4  // 32-bit number
  31. #define REG_DWORD_LITTLE_ENDIAN         4  // 32-bit number (same as REG_DWORD)
  32. #define REG_DWORD_BIG_ENDIAN            5  // 32-bit number
  33. #define REG_LINK                        6  // Symbolic Link (unicode)
  34. #define REG_MULTI_SZ                    7  // Multiple Unicode strings
  35. #define REG_RESOURCE_LIST               8  // Resource list in the resource map
  36. #define REG_FULL_RESOURCE_DESCRIPTOR    9  // Resource list in the hardware description
  37. #define REG_RESOURCE_REQUIREMENTS_LIST 10
  38.  
  39.  
  40. // Open/Create Options
  41. #define REG_OPTION_RESERVED         0x00000000   // Parameter is reserved
  42. #define REG_OPTION_NON_VOLATILE     0x00000000   // Key is preserved
  43.                                                  // when system is rebooted
  44. #define REG_OPTION_VOLATILE         0x00000001   // Key is not preserved
  45.                                                  // when system is rebooted
  46. #define REG_OPTION_CREATE_LINK      0x00000002   // Created key is a
  47.                                                  // symbolic link
  48. #define REG_OPTION_BACKUP_RESTORE   0x00000004   // open for backup or restore
  49.                                                  // special access rules
  50.                                                  // privilege required
  51. #define REG_OPTION_OPEN_LINK        0x00000008   // Open symbolic link
  52.  
  53.  
  54. // Key creation/open disposition
  55. #define REG_CREATED_NEW_KEY         0x00000001   // New Registry Key created
  56. #define REG_OPENED_EXISTING_KEY     0x00000002   // Existing Key opened
  57.  
  58.  
  59. // Key restore flags
  60. #define REG_WHOLE_HIVE_VOLATILE     0x00000001   // Restore whole hive volatile
  61. #define REG_REFRESH_HIVE            0x00000002   // Unwind changes to last flush
  62. #define REG_NO_LAZY_FLUSH           0x00000004   // Never lazy flush this hive
  63.  
  64.  
  65.  
  66.