| 17 | namespace { |
| 18 | |
| 19 | template <typename Target, typename Value> void set_out(Target *target, Value value) { |
| 20 | if (target) |
| 21 | *target = static_cast<Target>(value); |
| 22 | } |
| 23 | |
| 24 | void append_process_id(std::wstring &result, DWORD pid) { |
| 25 | if (!result.empty()) |