- Native x64 MSTSC-DVC-Erweiterung für lokalen Programmstart - Automatischer Script-/Programmstart bei RDP-Verbindungsaufbau - Separater Programmstart über Trigger innerhalb der RDP-Sitzung - Bidirektionaler DVC zur Ermittlung des lokalen Client-Hostnamens - SIOMIN-Trigger zur Anbindung lokaler Sidexis-Installationen - SIOMIN-Datensatzlängen und Hostname-Felder bytegenau angepasst - Temporäre SIOMIN-Einträge nach erfolgreicher Übernahme bereinigt - Native Win32-Konfigurationsoberfläche ohne .NET-Abhängigkeit - Mehrfachstartschutz und optionaler unsichtbarer Programmstart - Debug- und Plugin-Logging ergänzt - RemoteVDDS-Anwendungsfall integriert - Installer/Registrierung des MSTSC-Plugins über Client-Konfigurator - Techniker-, Entwickler- und Projektdokumentation ergänzt - Proprietäre Lizenz für Copyright Patrick Gniza hinzugefügt
36 lines
787 B
C++
36 lines
787 B
C++
#pragma once
|
|
|
|
#include <windows.h>
|
|
#include <string>
|
|
|
|
namespace testlaunch
|
|
{
|
|
struct LaunchSettings
|
|
{
|
|
std::wstring path;
|
|
std::wstring arguments;
|
|
std::wstring workingDirectory;
|
|
bool hidden = true;
|
|
};
|
|
|
|
class TestProcess
|
|
{
|
|
public:
|
|
~TestProcess();
|
|
TestProcess(const TestProcess&) = delete;
|
|
TestProcess& operator=(const TestProcess&) = delete;
|
|
TestProcess() = default;
|
|
|
|
bool Start(const LaunchSettings& settings, std::wstring& error);
|
|
bool Stop(std::wstring& error);
|
|
bool IsRunning();
|
|
DWORD ProcessId() const { return processId_; }
|
|
void Detach();
|
|
|
|
private:
|
|
HANDLE process_ = nullptr;
|
|
DWORD processId_ = 0;
|
|
void CleanupExited();
|
|
};
|
|
}
|