MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / Undo

Method Undo

WinArk/CopyValueCommand.cpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42bool CopyValueCommand::Undo() {
43 auto target = Registry::OpenKey(_targetPath, KEY_WRITE);
44 if (!target)
45 return false;
46
47 auto error = target.DeleteValue(_targetName);
48 ::SetLastError(error);
49 if (ERROR_SUCCESS != error)
50 return false;
51
52 return InvokeCallback(false);
53}

Callers

nothing calls this directly

Calls 1

DeleteValueMethod · 0.80

Tested by

no test coverage detected