 |
 |
Process and Thread ..msdn Add comment |
 |
|
AssignProcessToJobObject
|
|
Assigns a process to an existing job object. |
|
 |
 |
 |
|
CommandLineToArgvW
|
|
Parses a Unicode command-line string, and returns a pointer to a set of Unicode argument strings and a count of arguments, similar to the standard C run-time argv and argc values |
|
 |
 |
 |
|
CreateJobObject
|
|
Creates or opens a job object.
|
|
 |
 |
 |
|
CreateProcess
|
|
The CreateProcess function creates a new process and its primary thread. The new process runs the specified executable file.
The CreateProcess function is used to run a new program. The WinExec and LoadModule functions are still available, but they are implemented as calls to CreateProcess |
|
 |
 |
 |
|
CreateProcessAsUser
|
|
The CreateProcessAsUser function creates a new process and its primary thread. The new process then runs the specified executable file. The CreateProcessAsUser function is similar to the CreateProcess function, except that the new process runs in the security context of the user represented by the hToken parameter. |
|
 |
 |
 |
|
CreateProcessWithLogonW
|
|
The CreateProcessWithLogonW function creates a new process and its primary thread. The new process then runs the specified executable file in the security context of the specified credentials (user, domain, and password). It can optionally load the user profile for the specified user. |
|
 |
 |
 |
|
ExitProcess
|
|
The ExitProcess function ends a process and all its threads. |
|
 |
 |
 |
|
FreeEnvironmentStrings
|
|
The FreeEnvironmentStrings function frees a block of environment strings. |
|
 |
 |
 |
|
GetCommandLine
|
|
Returns a pointer to the command-line string for the current process. |
|
 |
 |
 |
|
GetCurrentProcess
|
|
The GetCurrentProcess function retrieves a pseudo handle for the current process. |
|
 |
 |
 |
|
GetCurrentProcessId
|
|
The GetCurrentProcessId function retrieves the process identifier of the calling process. |
|
 |
 |
 |
|
GetCurrentThread
|
|
The GetCurrentThread function retrieves a pseudo handle for the current thread. |
|
 |
 |
 |
|
GetCurrentThreadId
|
|
The GetCurrentThreadId function retrieves the thread identifier of the calling thread. |
|
 |
 |
 |
|
GetEnvironmentStrings
|
|
Retrieves the environment block for the current process.
|
|
 |
 |
 |
|
GetEnvironmentVariable
|
|
Retrieves the value of the specified variable from the environment block of the calling process. The value is in the form of a null-terminated string of characters. |
|
 |
 |
 |
|
GetPriorityClass
|
|
Retrieves the priority class for the specified process. This value, together with the priority value of each thread of the process, determines each thread"s base priority level. |
|
 |
 |
 |
|
GetProcessIoCounters
|
|
Retrieves accounting information for all I/O operations performed by the specified process. |
|
 |
 |
 |
|
GetProcessTimes
|
|
Retrieves timing information for the specified process. |
|
 |
 |
 |
|
GetProcessVersion
|
|
Retrieves the major and minor version numbers of the system on which the specified process expects to run. |
|
 |
 |
 |
|
GetStartupInfo
|
|
Retrieves the contents of the STARTUPINFO structure that was specified when the calling process was created. |
|
 |
 |
 |
|
GetThreadPriority
|
|
Retrieves the priority value for the specified thread. This value, together with the priority class of the thread"s process, determines the thread"s base-priority level. |
|
 |
 |
 |
|
IsWow64Process
|
|
Determines whether the specified process is running under WOW64. |
|
 |
 |
 |
|
OpenProcess
|
|
The OpenProcess function opens an existing process object. |
|
 |
 |
 |
|
RegisterServiceProcess
|
|
The RegisterServiceProcess function registers or unregisters a service process. A service process continues to run after the user logs off. |
|
 |
 |
 |
|
SetEnvironmentVariable
|
|
The SetEnvironmentVariable function sets the value of an environment variable for the current process. |
|
 |
 |
 |
|
SetPriorityClass
|
|
Sets the priority class for the specified process. This value together with the priority value of each thread of the process determines each thread"s base priority level. |
|
 |
 |
 |
|
SetThreadPriority
|
|
Sets the priority value for the specified thread. This value, together with the priority class of the thread"s process, determines the thread"s base priority level. |
|
 |
 |
 |
|
Sleep
|
|
The Sleep function suspends the execution of the current thread for the specified interval |
|
 |
 |
 |
|
TerminateJobObject
|
|
Terminates all processes currently associated with the job.
|
|
 |
 |
 |
|
TerminateProcess
|
|
The TerminateProcess function terminates the specified process and all of its threads. |
|
 |
 |
 |
|
WinExec
|
|
The WinExec function runs the specified application.
Note This function is provided only for compatibility with 16-bit Windows. Win32-based applications should use the CreateProcess function
|
|
 |
 |
 |
 |
| Code examples: |
 |
|
|
 |
|
|