ReactOS 0.4.16-dev-1453-g06343fa
|
#include <stdarg.h>
#include <string.h>
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "wincontypes.h"
#include "winternl.h"
#include "kernelbase.h"
#include "wine/debug.h"
#include "wine/condrv.h"
Go to the source code of this file.
Classes | |
struct | proc_thread_attr |
struct | _PROC_THREAD_ATTRIBUTE_LIST |
Macros | |
#define | WIN32_NO_STATUS |
Variables | |
static DWORD | shutdown_flags = 0 |
static DWORD | shutdown_priority = 0x280 |
static char * | command_lineA |
static WCHAR * | command_lineW |
BOOL WINAPI DECLSPEC_HOTPATCH CloseHandle | ( | HANDLE | handle | ) |
BOOL WINAPI DECLSPEC_HOTPATCH CompareObjectHandles | ( | HANDLE | first, |
HANDLE | second | ||
) |
|
static |
Definition at line 392 of file process.c.
Referenced by CreateProcessInternalW().
|
static |
Definition at line 257 of file process.c.
Referenced by create_cmd_process(), create_vdm_process(), and CreateProcessInternalW().
|
static |
Definition at line 141 of file process.c.
Referenced by CreateProcessInternalW().
|
static |
Definition at line 361 of file process.c.
Referenced by CreateProcessInternalW().
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessA | ( | const char * | app_name, |
char * | cmd_line, | ||
SECURITY_ATTRIBUTES * | process_attr, | ||
SECURITY_ATTRIBUTES * | thread_attr, | ||
BOOL | inherit, | ||
DWORD | flags, | ||
void * | env, | ||
const char * | cur_dir, | ||
STARTUPINFOA * | startup_info, | ||
PROCESS_INFORMATION * | info | ||
) |
Definition at line 686 of file process.c.
Referenced by _create_process(), DosCreateProcess(), START_TEST(), test_BreakawayOk(), test_CommandLine(), test_Console(), test_DebuggingFlag(), test_DetachConsoleHandles(), test_DetachStdHandles(), test_Directory(), test_Environment(), test_ExitCode(), test_GetProcessVersion(), test_IsWow64Process(), test_jobInheritance(), test_NtSuspendProcess(), test_Startup(), test_StartupNoConsole(), test_SuspendFlag(), test_TerminateProcess(), and test_Toolhelp().
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessAsUserA | ( | HANDLE | token, |
const char * | app_name, | ||
char * | cmd_line, | ||
SECURITY_ATTRIBUTES * | process_attr, | ||
SECURITY_ATTRIBUTES * | thread_attr, | ||
BOOL | inherit, | ||
DWORD | flags, | ||
void * | env, | ||
const char * | cur_dir, | ||
STARTUPINFOA * | startup_info, | ||
PROCESS_INFORMATION * | info | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessAsUserW | ( | HANDLE | token, |
const WCHAR * | app_name, | ||
WCHAR * | cmd_line, | ||
SECURITY_ATTRIBUTES * | process_attr, | ||
SECURITY_ATTRIBUTES * | thread_attr, | ||
BOOL | inherit, | ||
DWORD | flags, | ||
void * | env, | ||
const WCHAR * | cur_dir, | ||
STARTUPINFOW * | startup_info, | ||
PROCESS_INFORMATION * | info | ||
) |
Definition at line 452 of file process.c.
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessInternalA | ( | HANDLE | token, |
const char * | app_name, | ||
char * | cmd_line, | ||
SECURITY_ATTRIBUTES * | process_attr, | ||
SECURITY_ATTRIBUTES * | thread_attr, | ||
BOOL | inherit, | ||
DWORD | flags, | ||
void * | env, | ||
const char * | cur_dir, | ||
STARTUPINFOA * | startup_info, | ||
PROCESS_INFORMATION * | info, | ||
HANDLE * | new_token | ||
) |
Definition at line 466 of file process.c.
Referenced by CreateProcessA(), and CreateProcessAsUserA().
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessInternalW | ( | HANDLE | token, |
const WCHAR * | app_name, | ||
WCHAR * | cmd_line, | ||
SECURITY_ATTRIBUTES * | process_attr, | ||
SECURITY_ATTRIBUTES * | thread_attr, | ||
BOOL | inherit, | ||
DWORD | flags, | ||
void * | env, | ||
const WCHAR * | cur_dir, | ||
STARTUPINFOW * | startup_info, | ||
PROCESS_INFORMATION * | info, | ||
HANDLE * | new_token | ||
) |
Definition at line 508 of file process.c.
Referenced by CreateProcessAsUserW(), CreateProcessInternalA(), and CreateProcessW().
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessW | ( | const WCHAR * | app_name, |
WCHAR * | cmd_line, | ||
SECURITY_ATTRIBUTES * | process_attr, | ||
SECURITY_ATTRIBUTES * | thread_attr, | ||
BOOL | inherit, | ||
DWORD | flags, | ||
void * | env, | ||
const WCHAR * | cur_dir, | ||
STARTUPINFOW * | startup_info, | ||
PROCESS_INFORMATION * | info | ||
) |
void WINAPI DECLSPEC_HOTPATCH DeleteProcThreadAttributeList | ( | struct _PROC_THREAD_ATTRIBUTE_LIST * | list | ) |
BOOL WINAPI DECLSPEC_HOTPATCH DuplicateHandle | ( | HANDLE | source_process, |
HANDLE | source, | ||
HANDLE | dest_process, | ||
HANDLE * | dest, | ||
DWORD | access, | ||
BOOL | inherit, | ||
DWORD | options | ||
) |
Definition at line 734 of file process.c.
Referenced by test_Console(), test_DuplicateHandle(), test_Handles(), and test_TerminateProcess().
Definition at line 1449 of file process.c.
Referenced by DosCreateProcess().
Definition at line 1485 of file process.c.
Definition at line 49 of file process.c.
Referenced by get_file_name().
BOOL WINAPI DECLSPEC_HOTPATCH FreeEnvironmentStringsW | ( | LPWSTR | ptr | ) |
Definition at line 80 of file process.c.
HRESULT WINAPI GetApplicationRestartSettings | ( | HANDLE | process, |
WCHAR * | cmdline, | ||
DWORD * | size, | ||
DWORD * | flags | ||
) |
Definition at line 1329 of file process.c.
Referenced by __acrt_initialize_command_line(), crt_process_init(), DllMain(), doChild(), main(), START_TEST(), test__get_narrow_winmain_command_line(), and wmain().
Definition at line 1338 of file process.c.
Referenced by __acrt_initialize_command_line(), _tmain(), CmdDebugService(), crt_process_init(), DllMain(), doChild(), get_cmdline(), get_utf8_args(), main(), OpenSetupInf(), ProcessCommandLine(), restart_as_admin_elevated(), SHExplorerParseCmdLine(), START_TEST(), test_utf8_argument(), WinMain(), wmain(), wmainCRTStartup(), wWinMain(), and XCOPY_ParseCommandLine().
LPSTR WINAPI DECLSPEC_HOTPATCH GetEnvironmentStringsA | ( | void | ) |
Definition at line 1518 of file process.c.
Referenced by doChild(), and test_Environment().
LPWSTR WINAPI DECLSPEC_HOTPATCH GetEnvironmentStringsW | ( | void | ) |
Definition at line 1538 of file process.c.
Referenced by __dcrt_get_narrow_environment_from_os(), __dcrt_get_wide_environment_from_os(), BlockEnvToEnvironW(), doChild(), service_main(), SHELL_BuildEnvW(), start_debugger(), Test_ApphelpCheckRunApp(), test_child_env(), and wmain().
Definition at line 1621 of file process.c.
UINT WINAPI DECLSPEC_HOTPATCH GetErrorMode | ( | void | ) |
Definition at line 775 of file process.c.
Referenced by my_LoadLibraryA(), my_LoadLibraryExA(), my_LoadLibraryExW(), my_LoadLibraryW(), SetErrorMode(), START_TEST(), test_LoadLibraryA(), test_LoadLibraryExA(), test_LoadLibraryExW(), test_LoadLibraryW(), and UnhandledExceptionFilter().
BOOL WINAPI DECLSPEC_HOTPATCH GetExitCodeProcess | ( | HANDLE | process, |
LPDWORD | exit_code | ||
) |
Definition at line 788 of file process.c.
Referenced by do_spawnT(), test_ExitCode(), test_Handles(), and test_TerminateJobObject().
BOOL WINAPI DECLSPEC_HOTPATCH GetHandleInformation | ( | HANDLE | handle, |
DWORD * | flags | ||
) |
Definition at line 802 of file process.c.
Referenced by do_spawnT(), and test_DuplicateHandle().
DWORD WINAPI DECLSPEC_HOTPATCH GetPriorityClass | ( | HANDLE | process | ) |
BOOL WINAPI DECLSPEC_HOTPATCH GetProcessGroupAffinity | ( | HANDLE | process, |
USHORT * | count, | ||
USHORT * | array | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH GetProcessHandleCount | ( | HANDLE | process, |
DWORD * | count | ||
) |
DWORD WINAPI DECLSPEC_HOTPATCH GetProcessId | ( | HANDLE | process | ) |
BOOL WINAPI GetProcessInformation | ( | HANDLE | process, |
PROCESS_INFORMATION_CLASS | info_class, | ||
void * | data, | ||
DWORD | size | ||
) |
Definition at line 1036 of file process.c.
BOOL WINAPI GetProcessMitigationPolicy | ( | HANDLE | process, |
PROCESS_MITIGATION_POLICY | policy, | ||
void * | buffer, | ||
SIZE_T | length | ||
) |
Definition at line 890 of file process.c.
BOOL WINAPI DECLSPEC_HOTPATCH GetProcessPriorityBoost | ( | HANDLE | process, |
PBOOL | disable | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH GetProcessShutdownParameters | ( | LPDWORD | level, |
LPDWORD | flags | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH GetProcessTimes | ( | HANDLE | process, |
FILETIME * | create, | ||
FILETIME * | exit, | ||
FILETIME * | kernel, | ||
FILETIME * | user | ||
) |
Definition at line 923 of file process.c.
DWORD WINAPI DECLSPEC_HOTPATCH GetProcessVersion | ( | DWORD | pid | ) |
Definition at line 946 of file process.c.
Referenced by test_GetProcessVersion().
BOOL WINAPI DECLSPEC_HOTPATCH GetProcessWorkingSetSizeEx | ( | HANDLE | process, |
SIZE_T * | minset, | ||
SIZE_T * | maxset, | ||
DWORD * | flags | ||
) |
void WINAPI DECLSPEC_HOTPATCH GetStartupInfoW | ( | STARTUPINFOW * | info | ) |
Definition at line 1347 of file process.c.
Referenced by doChild().
HANDLE WINAPI DECLSPEC_HOTPATCH GetStdHandle | ( | DWORD | std_handle | ) |
Definition at line 1383 of file process.c.
Referenced by doChild(), test_DetachConsoleHandles(), test_DetachStdHandles(), and test_Handles().
void init_startup_info | ( | RTL_USER_PROCESS_PARAMETERS * | params | ) |
Definition at line 1306 of file process.c.
Referenced by DllMain().
BOOL WINAPI DECLSPEC_HOTPATCH InitializeProcThreadAttributeList | ( | struct _PROC_THREAD_ATTRIBUTE_LIST * | list, |
DWORD | count, | ||
DWORD | flags, | ||
SIZE_T * | size | ||
) |
Definition at line 1753 of file process.c.
Referenced by alloc_console(), and create_pseudo_console().
BOOL WINAPI DECLSPEC_HOTPATCH IsProcessorFeaturePresent | ( | DWORD | feature | ) |
BOOL WINAPI DECLSPEC_HOTPATCH IsWow64Process | ( | HANDLE | process, |
PBOOL | wow64 | ||
) |
Definition at line 1023 of file process.c.
BOOL WINAPI DECLSPEC_HOTPATCH IsWow64Process2 | ( | HANDLE | process, |
USHORT * | machine, | ||
USHORT * | native_machine | ||
) |
Definition at line 1088 of file process.c.
BOOL WINAPI DECLSPEC_HOTPATCH ProcessIdToSessionId | ( | DWORD | pid, |
DWORD * | id | ||
) |
Definition at line 1114 of file process.c.
BOOL WINAPI DECLSPEC_HOTPATCH QueryProcessCycleTime | ( | HANDLE | process, |
ULONG64 * | cycle | ||
) |
Definition at line 1134 of file process.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetEnvironmentStringsA | ( | char * | env | ) |
Definition at line 1555 of file process.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetEnvironmentStringsW | ( | WCHAR * | env | ) |
Definition at line 1580 of file process.c.
Referenced by SetEnvironmentStringsA().
BOOL WINAPI DECLSPEC_HOTPATCH SetEnvironmentVariableA | ( | LPCSTR | name, |
LPCSTR | value | ||
) |
Definition at line 1694 of file process.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetEnvironmentVariableW | ( | LPCWSTR | name, |
LPCWSTR | value | ||
) |
Definition at line 1721 of file process.c.
Referenced by SetEnvironmentVariableA().
UINT WINAPI DECLSPEC_HOTPATCH SetErrorMode | ( | UINT | mode | ) |
Definition at line 1149 of file process.c.
UINT WINAPI DECLSPEC_HOTPATCH SetHandleCount | ( | UINT | count | ) |
Definition at line 1171 of file process.c.
Referenced by test_DuplicateHandle().
BOOL WINAPI DECLSPEC_HOTPATCH SetPriorityClass | ( | HANDLE | process, |
DWORD | class | ||
) |
Definition at line 1194 of file process.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetProcessAffinityUpdateMode | ( | HANDLE | process, |
DWORD | flags | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH SetProcessGroupAffinity | ( | HANDLE | process, |
const GROUP_AFFINITY * | new, | ||
GROUP_AFFINITY * | old | ||
) |
BOOL WINAPI SetProcessInformation | ( | HANDLE | process, |
PROCESS_INFORMATION_CLASS | info_class, | ||
void * | info, | ||
DWORD | size | ||
) |
Definition at line 714 of file process.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetProcessShutdownParameters | ( | DWORD | level, |
DWORD | flags | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH SetStdHandle | ( | DWORD | std_handle, |
HANDLE | handle | ||
) |
Definition at line 1399 of file process.c.
Referenced by test_DetachStdHandles(), and test_Handles().
BOOL WINAPI DECLSPEC_HOTPATCH TerminateProcess | ( | HANDLE | handle, |
DWORD | exit_code | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH UpdateProcThreadAttribute | ( | struct _PROC_THREAD_ATTRIBUTE_LIST * | list, |
DWORD | flags, | ||
DWORD_PTR | attr, | ||
void * | value, | ||
SIZE_T | size, | ||
void * | prev_ret, | ||
SIZE_T * | size_ret | ||
) |
Definition at line 1820 of file process.c.
Referenced by alloc_console(), and create_pseudo_console().
Definition at line 1777 of file process.c.
Referenced by UpdateProcThreadAttribute().
WINE_DEFAULT_DEBUG_CHANNEL | ( | process | ) |
|
static |
Definition at line 1300 of file process.c.
Referenced by GetCommandLineA(), and init_startup_info().
|
static |
Definition at line 1301 of file process.c.
Referenced by GetCommandLineW(), and init_startup_info().
|
static |
Definition at line 38 of file process.c.
Referenced by GetProcessShutdownParameters(), and SetProcessShutdownParameters().
|
static |
Definition at line 39 of file process.c.
Referenced by GetProcessShutdownParameters(), and SetProcessShutdownParameters().