WriteRegData (Windows CE 5.0)

Send Feedback

This function is called by the OS to transfer registry data to persistent storage as defined by the OEM.

BOOL WriteRegData( DWORDdwFlags,LPBYTElpBuf,DWORDlen );

Parameters

  • dwFlags
    [in] Read options specified by the OS; currently, the only flag is REG_WRITE_BYTES_START, which indicates the start of the new registry file.
  • lpBuf
    [in] Pointer to a buffer allocated by the OS and filled with registry bytes. This function retrieves the bytes and saves them in persistent storage.
  • len
    [in] Number of bytes in the buffer lpBuf passed in by the OS. When set to zero, then end of file has been reached.

Return Values

If this function succeeds, it returns TRUE. If this function fails, it returns FALSE.

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.