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

Method Undo

WinArk/CreateValueCommand.cpp:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38bool CreateValueCommand::Undo() {
39 auto key = Registry::OpenKey(GetPath(), KEY_WRITE);
40 if (!key)
41 return false;
42
43 auto error = key.DeleteValue(GetName());
44 ::SetLastError(error);
45 if (ERROR_SUCCESS != error)
46 return false;
47
48 return InvokeCallback(false);
49}
50
51DWORD CreateValueCommand::GetType() const {
52 return _type;

Callers

nothing calls this directly

Calls 1

DeleteValueMethod · 0.80

Tested by

no test coverage detected