Share via


ReadRegData (Windows CE 5.0)

Send Feedback

This function reads a registry file into RAM from persistent storage as defined by the OEM.

DWORD ReadRegData(DWORDdwFlags,LPBYTEpBuf,DWORDlen );

Parameters

  • dwFlags
    [in] Read options specified by the OS. REG_READ_BYTES_START indicates reading must start from the beginning of the registry file.
  • pBuf
    [in] Pointer to a buffer allocated by the OS. You must load the buffer with registry bytes up to a maximum of len.
  • cbData
    [in] Size in bytes of the buffer to which pBuf points. It is passed in by the OS.

Return Values

Returns the number of bytes added to pBuf. If zero is returned, the end of file (EOF) has been reached. If -1 is returned, then your function's read functionality has faulted and the OS should load the default registry.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Pwinreg.h.
Link Library: Coredll.lib

See Also

Registry Functions | Persisting Data with the RAM-Based Registry

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.