Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function performs a series of registry operations.

Syntax

BOOL RegistryOperation(
  DWORD 
dwOp
);

Parameters

dwOp

[in] Registry operation to perform. The following table shows possible values.

Value Description

REGOP_DO_IMPORT

Specifies that the registry is running and registry functions can be called. This enables the OEM file system to begin importing registry values.

REGOP_END_FLUSH

End of a flush operation. This enables the OEM file system to perform a cleanup operation.

REGOP_END_READ

End of a ReadGenericDataoperation sequence.

REGOP_END_RESTORE

End of a restore operation. This enables the OEM file system to perform a cleanup operation.

REGOP_END_WRITE

End of a WriteGenericDataoperation sequence.

REGOP_START_FLUSH

Start of a flush operation. This value indicates that the file system is about to flush the registry and enables the OEM file system to preallocate any buffer information.

REGOP_START_READ

Start of a ReadGenericDataoperation sequence.

REGOP_START_RESTORE

Start of a restore operation.

REGOP_START_WRITE

Start of a WriteGenericDataoperation sequence.

Return Value

A nonzero value indicates success. Zero indicates failure.

Requirements

Header pwinreg.h
Library coredll.lib
Windows Embedded CE Windows CE .NET 4.2 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Registry Functions

Other Resources