Einzelnen Beitrag anzeigen

TiGü

Registriert seit: 6. Apr 2011
Ort: Berlin
3.070 Beiträge
 
Delphi 10.4 Sydney
 
#2

AW: Prozesshandles

  Alt 22. Feb 2013, 15:06
Delphi-Quellcode:
 // - Prozess prüfen

        procid := OpenProcess(PROCESS_TERMINATE, false, strtoint(pid));
        if(procid <> 0) then begin;
          status := true;
        end;
http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
Zitat von MSDN:
The handle returned by the OpenProcess function can be used in any function that requires a handle to a process, such as the wait functions, provided the appropriate access rights were requested.

When you are finished with the handle, be sure to close it using the CloseHandle function.

Geändert von TiGü (22. Feb 2013 um 15:25 Uhr)
  Mit Zitat antworten Zitat