The following creation flags are used in the CreateProcess function. CREATE_SUSPENDED can also be used in the CreateThread function.
DEBUG_PROCESS DEBUG_ONLY_THIS_PROCESS CREATE_SUSPENDED DETACHED_PROCESS CREATE_NEW_CONSOLE