次の方法で共有


ReadRegData (Compact 2013)

3/26/2014

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

See Also

Reference

Registry Functions