.


:




:

































 

 

 

 





, , , , , ExitProcess, (exit code):

VOID ExitProcess(UINT uExitCode)

. . , DllMain (. 5) . . return ExitProcess, .

, GetExitCodeProcess:

BOOL GetExitCodeProcess(HANDLE hProcess, LPDWORD lpExitCode)

, hProcess, PROCESS_QUERY_INFORMATION (. OpenProcess, ). lpExitCode DWORD, . STILL_ACTIVE, , .

, , PROCESS_TERMINATE. .

BOOL TerminateProcess(HANDLE hProcess, UINT uExitCode)

, , , , . , , 8 (, ). SEH ( 4), ExitProcess . , ExitProcess __finally __except , . TerminateProcess, SEH DllMain DLL. , , .

6.3 , . , .

UNIX , pid, Windows. getpid GetCurrentProcessID, getppid getgpid Windows .

, , UNIX , , GetCurrentProcess OpenProcess.

UNIX (descriptors) exec, close-on-exec. , , , (handles) Windows.

UNIX exit, , ExitProcess; SIGKILL.





:


: 2015-09-20; !; : 460 |


:

:

. .
==> ...

1262 - | 1234 -


© 2015-2024 lektsii.org - -

: 0.012 .