Contents Index Topic Contents | ||
Previous Topic: SHSetValue Next Topic: SHQueryInfoKey |
SHOpenRegStream
IStream* SHOpenRegStream( HKEY hkey, LPCTSTR pszSubkey, LPCTSTR pszValue, DWORD grfMode );Opens a registry value and supplies an IStream interface that can be used to read from or write to the value.
- Returns the address of an IStream interface if successful, or NULL otherwise. The calling application is responsible for calling this interface's Release method when the IStream object is no longer needed.
- hkey
- Handle to the key that is currently open.
- pszSubkey
- Address of a null-terminated string that specifies the name of the subkey.
- pszValue
- Address of the value to be accessed.
- grfMode
- Type of access for the stream. This can be one of the following values:
STGM_READ Open the stream for reading. STGM_WRITE Open the stream for writing. STGM_READWRITE Open the stream for reading and writing.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.