Deprecated. Opens a registry value and supplies a stream that can be used to read from or write to the value.
IStream * SHOpenRegStreamA( HKEY hkey, LPCSTR pszSubkey, LPCSTR pszValue, DWORD grfMode );
Required. The subtree, such as HKEY_LOCAL_MACHINE, that contains the value.
Optional. Pointer to a null-terminated string that specifies the subkey that contains the value. This value can be NULL.
Pointer to a null-terminated string that specifies the value to be accessed. This value can be NULL.
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 both reading and writing.
Returns an IStream interface pointer if successful; otherwise, NULL. A NULL value can be caused by several situations, including an invalid hkey or pszSubkey, or an inability to open the stream.
|Minimum supported client||Windows 2000 Professional, Windows XP [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|DLL||Shlwapi.dll (version 4.71 or later)|