ReadRegData (Windows Embedded CE 6.0)

1/6/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 len parameter.
  • cbData
    [in] Size, in bytes, of the buffer to which pBuf points.

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

See Also

Reference

Registry Functions

Concepts

Persisting Data with the RAM-Based Registry