Forum: Win32/Win64 API (native code)
Delphi
by KodeZwerg,
28. Jun 2023
Ich verstehe.
Was für einen Prozess startet denn eine Konsolen Anwendung mit installierten Terminal?
Mit der klassischen Konsolen Anwendung hab ich "conhost.exe" unter meiner ProcessID.
Forum: Win32/Win64 API (native code)
Delphi
by KodeZwerg,
28. Jun 2023
Kannst Du mal mit diesem Schnippsel prüfen was unter einem Terminal rauskommt?
function IsConsole: Boolean;
var
Stdout: THandle;
begin
Stdout := GetStdHandle(Std_Output_Handle);
Win32Check(Stdout <> Invalid_Handle_Value);
Result := Stdout <> 0;
end;
Laut hier -> https://learn.microsoft.com/en-us/windows/console/getstdhandle sollte es nur für eine Konsole funktionieren.