MCPcopy Create free account
hub / github.com/M2Team/NanaBox / ServerStartProgram

Method ServerStartProgram

NanaBox/RdpClient.cpp:2417–2445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2415}
2416
2417void NanaBox::RdpClient::ServerStartProgram(
2418 winrt::hstring const& ExecutablePath,
2419 winrt::hstring const& FilePath,
2420 winrt::hstring const& WorkingDirectory,
2421 bool const& ExpandEnvVarInWorkingDirectoryOnServer,
2422 winrt::hstring const& Arguments,
2423 bool const& ExpandEnvVarInArgumentsOnServer)
2424{
2425 winrt::bstr RawExecutablePath;
2426 RawExecutablePath.attach(::SysAllocString(ExecutablePath.c_str()));
2427 winrt::bstr RawFilePath;
2428 RawFilePath.attach(::SysAllocString(FilePath.c_str()));
2429 winrt::bstr RawWorkingDirectory;
2430 RawWorkingDirectory.attach(::SysAllocString(WorkingDirectory.c_str()));
2431 winrt::bstr RawArguments;
2432 RawArguments.attach(::SysAllocString(Arguments.c_str()));
2433 winrt::check_hresult(
2434 this->m_RemoteProgram->ServerStartProgram(
2435 RawExecutablePath.get(),
2436 RawFilePath.get(),
2437 RawWorkingDirectory.get(),
2438 ExpandEnvVarInWorkingDirectoryOnServer
2439 ? VARIANT_TRUE
2440 : VARIANT_FALSE,
2441 RawArguments.get(),
2442 ExpandEnvVarInArgumentsOnServer
2443 ? VARIANT_TRUE
2444 : VARIANT_FALSE));
2445}
2446
2447void NanaBox::RdpClient::RemoteApplicationName(
2448 winrt::hstring const& Value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected