Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This function reads a registry file defined by the OEM into RAM from persistent storage.
Syntax
DWORD ReadRegData( DWORD dwFlags, LPBYTE pBuf, DWORD len ); |
Parameters
- dwFlags
-
[in] Read options. REG_READ_BYTES_START indicates that reading starts from the beginning of the registry file.
- pBuf
-
[in] Pointer to a buffer allocated by the OS. Load the buffer with registry bytes up to a maximum of the value of the lenparameter.
- cbData
-
[in] Size, in bytes, of the buffer to which pBufpoints.
Return Value
Returns the number of bytes added to pBuf. Zero indicates the end of the file has been reached. A value of -1 indicates failure. The OS must load the default registry.
Requirements
Header | pwinreg.h |
Library | coredll.lib |
Windows Embedded CE | Windows CE .NET 4.2 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |