| 3 | #include "Registry.h" |
| 4 | |
| 5 | ChangeValueCommand::ChangeValueCommand(PCWSTR path, PCWSTR name, DWORD type, const PVOID data, |
| 6 | LONG size, AppCommandCallback<ChangeValueCommand> cb) |
| 7 | :RegAppCommandBase(L"Change Value"+CString(name),path,name,cb), |
| 8 | _type(type),_size(size){ |
| 9 | _data = std::make_unique<BYTE[]>(size); |
| 10 | memcpy(_data.get(), data, size); |
| 11 | } |
| 12 | |
| 13 | bool ChangeValueCommand::Execute() { |
| 14 | auto key = Registry::OpenKey(GetPath(), KEY_SET_VALUE | KEY_QUERY_VALUE); |
nothing calls this directly
no outgoing calls
no test coverage detected