Knowledge Base

How To Use the Registry Under Win32s

Article ID: 129542

Article Last Modified on 4/13/2004


APPLIES TO


This article was previously published under Q129542

SUMMARY

A Win32s-based application running under Win32s is limited to the Windows version 3.1 view of the registry. This means that there are no named values. In addition, HKEY_CLASSES_ROOT is available, but not HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER.

The Windows version 3.1 registry is very limited in size. It is recommended that you store only the OLE registration information in the Windows registry.

MORE INFORMATION

While Win32s does support some Registry APIs that Windows does not, it does not support all of the Win32 Registry APIs. For a complete list of the Registry APIs supported under Win32s, please see the file WIN32API.CSV, that is included with the Win32 Software Development Kit (SDK) and in Microsoft Visual C++ (32-bit edition).

NOTE: All supported Registry APIs, except for RegQueryValueA() and RegQueryValueExA(), return the error codes defined for Windows version 3.1, not the codes defined by the Win32 API.

Additional query words: 1.20

Keywords: KB129542