次の方法で共有


WriteRegData (Compact 2013)

3/26/2014

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

Syntax

BOOL WriteRegData( 
  DWORD dwFlags, 
  LPBYTE lpBuf, 
  DWORD len 
);

Parameters

  • dwFlags
    [in] Read options specified by the OS. Currently, the only possible value 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 data. This function retrieves the data and saves it to persistent storage.
  • len
    [in] Number of bytes in the lpBuf buffer passed in by the OS. When set to zero, the end of the file has been reached.

Return Value

TRUE indicates success. FALSE indicates failure.

Requirements

Header

pwinreg.h

Library

coredll.lib

See Also

Reference

Registry Functions