Partager via


pReadRegistryFromOEM (Windows CE 5.0)

Send Feedback

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

Changing this global variable to point to an implementation of the ReadRegistryFromOEM function is optional.

DWORD (*pReadRegistryFromOEM)(DWORDdwFlags,DWORDlpData, DWORDcbData);

Parameters

  • dwFlags
    [in] Read options specified by the OS.

    REG_READ_BYTES_START indicates reading must start from the beginning of the registry file.

  • lpData
    [in] Pointer to a buffer allocated by the OS.

    You must load the buffer with registry bytes up to a maximum of cbData.

  • cbData
    [in] Size, in bytes, of the buffer that lpData points to.

    This value is passed in by the OS.

Return Values

Returns the number of bytes added to lpData.

If 0 is returned, the end of file (EOF) has been reached.

If -1 is returned, your function's read functionality has faulted and the OS should load the default registry.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Not applicable.
Link Library: Coredll.lib.

See Also

pWriteRegistryToOEM | ReadRegistryFromOEM

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.