###User Defined Function###
_WinAPI_CreateProcess

###Description###
Creates a new process and its primary thread

###Syntax###
#include <WinAPI.au3>
_WinAPI_CreateProcess ( $sAppName, $sCommand, $pSecurity, $pThread, $fInherit, $iFlags, $pEnviron, $sDir, $pStartupInfo, $pProcess )


###Parameters###
@@ParamTable@@
$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
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	True
Failure:	False, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information
@@End@@


###Remarks###
None.


###Related###
$tagSECURITY_ATTRIBUTES, $tagSTARTUPINFO, $tagPROCESS_INFORMATION


###See Also###
@@MsdnLink@@ CreateProcess
