[OpenRegStream is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use SHOpenRegStream2 or SHOpenRegStream.]
Opens a registry value and supplies an IStream interface that can be used to read from or write to the value.
IStream * OpenRegStream( HKEY hkey, PCWSTR pszSubkey, PCWSTR pszValue, DWORD grfMode );
A handle to the key that is currently open.
A null-terminated Unicode string that specifies the name of the subkey.
A null-terminated Unicode string that specifies the value to be accessed.
The type of access for the stream. This can be one of the following values.
Open the stream for reading.
Open the stream for writing.
Open the stream for reading and writing.
Returns the address of an IStream interface if successful, or NULL otherwise.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|
|Header||shlobj_core.h (include Shlobj.h)|
|DLL||Shell32.dll (version 5.0 or later)|