A version of this page is also available for
This function reads a registry file defined by the OEM into RAM from persistent storage.
DWORD ReadRegData( DWORD dwFlags, LPBYTE pBuf, DWORD len );
[in] Read options. REG_READ_BYTES_START indicates that reading starts from the beginning of the registry file.
[in] Pointer to a buffer allocated by the OS. Load the buffer with registry bytes up to a maximum of the value of the len parameter.
[in] Size, in bytes, of the buffer to which pBuf points.
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.
|Windows Embedded CE||Windows CE .NET 4.2 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|