Forum: Win32/Win64 API (native code)
by schwa226,
15. Jan 2009
Habe folgende Funktion schon einmal getestet:
function ForceForegroundWindow(hwnd: THandle): Boolean;
const
SPI_GETFOREGROUNDLOCKTIMEOUT = $2000;
SPI_SETFOREGROUNDLOCKTIMEOUT = $2001;
var
ForegroundThreadID: DWORD;
ThisThreadID: DWORD;
timeout: DWORD;
Forum: Win32/Win64 API (native code)
by schwa226,
14. Jan 2009
Hallo,
bin momentan etwas verwirrt...
ich starte mit CreateProcess ein externes Programm:
function RunProcess(FileName: string; ShowCmd: DWORD; wait: Boolean; ProcIDRunProcess: PDWORD): TProcessInformation;
var
StartupInfoRunProcess: TStartupInfo;
ProcessInfoRunProcess: TProcessInformation;
ExitInfo : PExitThreadDebugInfo;