SHOpenRegStreamSHOpenRegStream*
*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.

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.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.