This flag is ignored if specified with CREATE_NEW_CONSOLE. If this flag is specified, CTRL+C signals will be disabled for all processes within the new process group. Process groups are used by the GenerateConsoleCtrlEvent function to enable sending a CTRL+BREAK signal to a group of console processes. The process identifier of the new process group is the same as the process identifier, which is returned in the lpProcessInformation parameter. The process group includes all processes that are descendants of this root process. The new process is the root process of a new process group. This flag cannot be used with DETACHED_PROCESS. For more information, see Creation of a Console. The new process has a new console, instead of inheriting its parent's console (the default). Setting this flag changes that default behavior. The default behavior is for the new process to inherit the error mode of the caller. This feature is particularly useful for multithreaded shell applications that run with hard errors disabled. Instead, the new process gets the default error mode. The new process does not inherit the error mode of the calling process. If the calling process is associated with a job, the job must set the JOB_OBJECT_LIMIT_BREAKAWAY_OK limit. If the calling process is not associated with a job, this constant has no effect. The child processes of a process associated with a job are not associated with the job. &processInformation) // Pointer to PROCESS_INFORMATION structureĮxample from Windows classic samples on GitHub. &startupInfo, // Pointer to STARTUPINFO structure NORMAL_PRIORITY_CLASS | CREATE_NEW_CONSOLE | CREATE_NEW_PROCESS_GROUP, // creation flags NULL, // No module name (use command line)įALSE, // Set handle inheritance to FALSE They can be specified in any combination, except as noted. The following process creation flags are used by the CreateProcess, CreateProcessAsUser, CreateProcessWithLogonW, and CreateProcessWithTokenW functions.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |