Extensions Reference
Extensions Reference > exRegistry
regExportKey
bool regExportKey(string Filename);
Export a registry key to disk
The REGEXPORTKEY function exports the currently open registry key to a .reg file on disk. The key must have been previously opened by exRegistry::regOpenKey or exRegistry::regCreateKey.
Parameters
Filename
The filename to save the export to
Return Value
If the export succeeded this function returns TRUE, otherwise this function returns FALSE.
Example Code
// Open the Brass registry key for the current user
if(regOpenKey("HKCU", "Software\\32Bits\\Brass") == True)
{
// Export it to disk
if(regExportKey("C:\\Brass.reg") == TRUE)
{
// Export succeeeded
}
}