MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / callMainProgramImpl

Method callMainProgramImpl

FastCopyShellExtension/dllmain.cpp:279–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 }
278
279 HRESULT callMainProgramImpl(std::wstring_view arg)
280 {
281 std::wstring argTransform{arg};
282 std::transform(argTransform.begin(), argTransform.end(), argTransform.begin(), [](wchar_t c) { return c == L'\\' ? L'/' : c; });
283 auto result = ShellExecute(
284 NULL,
285 L"open",
286 std::format(LR"(fastcopy://"{}"|{})", argTransform, Registry{}.read(L"record")).data(),
287 nullptr,
288 nullptr,
289 SW_SHOW
290 );
291 return S_OK;
292 }
293
294 IShellItem* m_parent{};
295public:

Callers

nothing calls this directly

Calls 4

dataMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected