feat: initiale Version 0.1.0 des MSTSC Script Hooks
- 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
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#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();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user