Flush;
The Flush method records all attributes of the specified opened registry subkey to the hard drive.
Registry changes are copied to the hard drive with deferred flush. Deferred flush happens automatically and regularly after the time interval specified by the system. Registry changes are also copied to the hard drive when the system is shut down.
The Flush method must be called to provide absolute assurance that registry changes are saved to the hard drive.
See also: