ReadRegData

Windows Mobile 6.5
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.


DWORD ReadRegData(
  DWORD dwFlags, 
  LPBYTE pBuf, 
  DWORD len 
);

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 len parameter.

cbData

[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.

Headerpwinreg.h
Librarycoredll.lib
Windows Embedded CEWindows CE .NET 4.2 and later
Windows MobileWindows Mobile Version 5.0 and later

Reference

Registry Functions

Other Resources


Community Additions

Show: