home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / registry / readme.txt < prev   
Encoding:
Text File  |  1996-05-02  |  1.9 KB  |  46 lines

  1. Using the Win32 API to Access the Registry
  2.  
  3.  
  4. SUMMARY
  5. =======
  6.  
  7. The REGISTRY sample is a simple utility which demonstrates the functions 
  8. needed to access the registry. The sample goes up and down the branches of 
  9. the registry tree, displaying the individual key's data values. The sample 
  10. can also print specified trees to a file named Registry.Txt.
  11.  
  12. MORE INFORMATION
  13. ================
  14.  
  15. Usage
  16. -----
  17.  
  18. Start the sample. A dialog box appears with several edit fields, list boxes,
  19. and buttons. The list box at the center of the dialog box (labeled CHILD 
  20. KEYS at the bottom) always holds the child keys of the current key. 
  21. Initially, it has four entries, representing the predefined key handles of 
  22. the registry: 
  23.  
  24.     HKEY_LOCAL_MACHINE 
  25.     HKEY_CURRENT_USER 
  26.     HKEY_USERS
  27.     HKEY_CLASSES_ROOT
  28.  
  29. If you double-click on any of these entries, or highlight one and press the 
  30. Next/Down button; the key that you selected appears in the Key Name edit 
  31. field, and the children of that selected key replace the entries in the 
  32. CHILD KEYS list box. To proceed deeper into the tree, double-click another 
  33. child. To back out of the registry, double-click on the ".." at the top of 
  34. the list box, or press the Back/Up button.
  35.  
  36. If the current key has values associated with it, the name of the values is 
  37. listed in the right list box (labeled VALUES). If it has no values, VALUES 
  38. is followed by a "0". Once you come to a key that does have values 
  39. associated with it, you can double-click on any of the values in this list 
  40. box. At the bottom of the dialog box are two edit fields: Value: Data Type 
  41. and Value: Data Entry. By double-clicking a value entry, these edit fields 
  42. are filled with the data's type and the data's value. 
  43.  
  44. If the current key has a class type associated with it, it appears in the 
  45. Class edit field. The ACL edit field is not implemented at this time.
  46.