_WinAPI_CreateProcess
Creates a new process and its primary thread
#include <WinAPI.au3>
_WinAPI_CreateProcess($sAppName, $sCommand, $pSecurity, $pThread, $fInherit, $iFlags, $pEnviron, $sDir, $pStartupInfo, $pProcess)
Параметры
$sAppName | The name of the module to be executed |
$sCommand |
The command line to be executed |
$pSecurity |
Pointer to $tagSECURITY_ATTRIBUTES structure that determines whether the returned handle can be inherited by child processes. |
$pThread |
Pointer to $tagSECURITY_ATTRIBUTES structure that determines whether the returned handle can be inherited by child processes. |
$fInherit |
If True, each inheritable handle in the calling process is inherited by the new process |
$iFlags |
Flags that control the priority class and creation of the process |
$pEnviron |
Pointer to the environment block for the new process |
$sDir |
The full path to the current directory for the process |
$pStartupInfo |
Pointer to a $tagSTARTUPINFO structure |
$pProcess |
Pointer to a $tagPROCESS_INFORMATION structure |
Возвращаемое значение
Успех: | Возвращает True |
Ошибка: | Возвращает False |
См. также
$tagSECURITY_ATTRIBUTES, $tagSTARTUPINFO, $tagPROCESS_INFORMATIONСм. также
Искать CreateProcess в библиотеке MSDN