How To Read from the Windows Registry (140170)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 5.0
This article was previously published under Q140170 SUMMARY
You can use the Windows API functions RegEnumValue() and RegOpenKey() to
read values into a Visual FoxPro application from a multiple-valued key in
the Windows registry. For single-valued registry keys (not covered in this
article) use the RegQueryValue() API.
More information about API functions in general can be found in the
Win32api.hlp help file that comes with the Professional version of Visual
FoxPro. Also, for information on how to write to the Windows registry,
please see the following article in the Microsoft Knowledge Base:
135398 How To Write to the Windows Registry Using API Calls
NOTE: Reading from the Windows registry applies to the Windows NT and
Windows 95 operating systems. Use GetProfileString and WriteProfileString
to read and write to the appropriate .ini files in the Windows for
Workgroups and Windows 3.1 operating systems.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbcode KB140170 |
---|
|