|
ReactOS 0.4.16-dev-2207-geb15453
|
#include <assert.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include "ntstatus.h"#include "windef.h"#include "winbase.h"#include "winuser.h"#include "wincon.h"#include "winnls.h"#include "winternl.h"#include "tlhelp32.h"#include "wine/test.h"#include "wine/heap.h"
Go to the source code of this file.
Classes | |
| struct | std_handle_test |
| struct | proc_thread_attr |
| struct | _PROC_THREAD_ATTRIBUTE_LIST |
| #define HATTR_INVALID 0x04 /* INVALID_HANDLE_VALUE */ |
| #define HATTR_UNTOUCHED 0x10 /* Identify fields untouched by GetStartupInfoW */ |
| #define INIT_STR "Just some words" |
| #define PROCESS_ALL_ACCESS_NT4 (PROCESS_ALL_ACCESS & ~0xf000) |
| #define test_assigned_proc | ( | job, | |
| ... | |||
| ) | _test_assigned_proc(__LINE__, job, __VA_ARGS__) |
| #define THREAD_ALL_ACCESS_NT4 (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3ff) |
Definition at line 313 of file process.c.
|
static |
Definition at line 2638 of file process.c.
|
static |
Definition at line 2680 of file process.c.
Definition at line 2651 of file process.c.
|
static |
Definition at line 2619 of file process.c.
|
static |
Definition at line 3350 of file process.c.
Referenced by test_StdHandleInheritance().
|
static |
Definition at line 3324 of file process.c.
Referenced by test_StdHandleInheritance().
Definition at line 1320 of file process.c.
Referenced by test_Environment().
Definition at line 3283 of file process.c.
Referenced by test_StdHandleInheritance().
Definition at line 381 of file process.c.
Referenced by START_TEST().
Definition at line 343 of file process.c.
Referenced by doChild().
Definition at line 300 of file process.c.
Definition at line 591 of file process.c.
Referenced by cmpEnvironment(), ok_child_string(), test_Console(), test_DebuggingFlag(), test_Startup(), and test_SuspendFlag().
Definition at line 238 of file process.c.
Referenced by START_TEST().
|
static |
|
static |
|
static |
Definition at line 631 of file process.c.
Definition at line 135 of file process.c.
Referenced by cmpEnvironment(), test_CommandLine(), test_Console(), test_DebuggingFlag(), test_Directory(), test_Environment(), test_ExitCode(), test_Startup(), test_StdHandleInheritance(), test_SuspendFlag(), and test_Toolhelp().
Definition at line 221 of file process.c.
Referenced by test_CommandLine(), test_Console(), test_DebuggingFlag(), test_Directory(), test_Environment(), test_ExitCode(), test_Startup(), test_StdHandleInheritance(), test_SuspendFlag(), and test_Toolhelp().
|
static |
| START_TEST | ( | process | ) |
Definition at line 5631 of file process.c.
Definition at line 615 of file process.c.
Referenced by ok_child_string(), test_Console(), test_DebuggingFlag(), test_Startup(), and test_SuspendFlag().
Definition at line 3175 of file process.c.
Referenced by START_TEST().
Definition at line 933 of file process.c.
Referenced by START_TEST().
Definition at line 2961 of file process.c.
Referenced by START_TEST().
Definition at line 1565 of file process.c.
Referenced by START_TEST().
Definition at line 4805 of file process.c.
Referenced by START_TEST().
Definition at line 1505 of file process.c.
Referenced by START_TEST().
Definition at line 1155 of file process.c.
Referenced by START_TEST().
Definition at line 2480 of file process.c.
Referenced by START_TEST().
Definition at line 1374 of file process.c.
Referenced by START_TEST().
Definition at line 1755 of file process.c.
Referenced by START_TEST().
Definition at line 4303 of file process.c.
Referenced by START_TEST().
Definition at line 4088 of file process.c.
Referenced by START_TEST().
Definition at line 1926 of file process.c.
Referenced by START_TEST().
Definition at line 5567 of file process.c.
Referenced by START_TEST().
Definition at line 1891 of file process.c.
Referenced by START_TEST().
Definition at line 4335 of file process.c.
Referenced by START_TEST().
Definition at line 4727 of file process.c.
Referenced by START_TEST().
Definition at line 2140 of file process.c.
Referenced by START_TEST().
Definition at line 2698 of file process.c.
Referenced by START_TEST().
Definition at line 2186 of file process.c.
Referenced by START_TEST().
Definition at line 2242 of file process.c.
Referenced by START_TEST().
Definition at line 5110 of file process.c.
Referenced by START_TEST().
Definition at line 3152 of file process.c.
Referenced by START_TEST().
Definition at line 3009 of file process.c.
Referenced by START_TEST().
Definition at line 4400 of file process.c.
Referenced by START_TEST().
Definition at line 5013 of file process.c.
Referenced by START_TEST().
Definition at line 4872 of file process.c.
Referenced by START_TEST().
Definition at line 1783 of file process.c.
Referenced by START_TEST(), and test_OpenProcess().
Definition at line 4546 of file process.c.
Referenced by START_TEST().
Definition at line 4134 of file process.c.
Referenced by START_TEST().
Definition at line 2398 of file process.c.
Referenced by START_TEST().
Definition at line 4430 of file process.c.
Referenced by START_TEST().
Definition at line 1967 of file process.c.
Referenced by START_TEST().
Definition at line 2022 of file process.c.
Referenced by START_TEST().
Definition at line 2833 of file process.c.
Referenced by START_TEST().
Definition at line 2415 of file process.c.
Referenced by START_TEST().
Definition at line 5442 of file process.c.
Referenced by START_TEST().
Definition at line 4121 of file process.c.
Referenced by START_TEST().
Definition at line 675 of file process.c.
Referenced by START_TEST().
Definition at line 5485 of file process.c.
Referenced by START_TEST().
Definition at line 3434 of file process.c.
Referenced by START_TEST().
Definition at line 1459 of file process.c.
Referenced by START_TEST().
Definition at line 2354 of file process.c.
Referenced by START_TEST().
Definition at line 2779 of file process.c.
Referenced by START_TEST().
Definition at line 2443 of file process.c.
Referenced by START_TEST().
Definition at line 1195 of file process.c.
Referenced by START_TEST().
Definition at line 3049 of file process.c.
Referenced by START_TEST().
|
static |
Definition at line 214 of file process.c.
Referenced by test_BreakawayOk(), test_CommandLine(), test_Console(), test_DebuggingFlag(), test_Directory(), test_Environment(), test_handle_list_attribute(), test_job_list_attribute(), test_jobInheritance(), test_parent_process_attribute(), test_QueryInformationJobObject(), test_Startup(), test_SuspendFlag(), test_Toolhelp(), and test_WaitForJobObject().
| JOBOBJECTINFOCLASS class |
Definition at line 73 of file process.c.
Referenced by do_spawnT().
|
static |
Definition at line 107 of file process.c.
Referenced by AddConsoleAliasA(), AddConsoleAliasW(), debugclient_GetRunningProcessDescriptionWide(), debugclient_GetRunningProcessSystemIdByExecutableNameWide(), DECLARE_INTERFACE_(), ExpungeConsoleCommandHistoryA(), ExpungeConsoleCommandHistoryW(), GetConsoleAliasA(), GetConsoleAliasW(), GetConsoleCommandHistoryA(), GetConsoleCommandHistoryLengthA(), GetConsoleCommandHistoryLengthW(), GetConsoleCommandHistoryW(), init(), main(), test_CommandLine(), test_match_ex(), test_mode_generic(), and test_Toolhelp().
| UINT exit_code |
Definition at line 80 of file process.c.
Referenced by _CorExeMain(), _cwait(), _wsystem(), check_child_console_bits(), check_run_child(), CoWaitForMultipleHandles(), crash_and_debug(), crash_and_winedbg(), DECLARE_INTERFACE_(), execute_command(), FreeLibraryAndExitThread(), GetExitCodeProcess(), GetExitCodeThread(), restart_as_admin_elevated(), run_child_wait(), run_script_file(), runCmd(), START_TEST(), system(), TerminateProcess(), TerminateThread(), test_CtrlHandlerSubsystem(), test_kill_on_exit(), and WshShell3_Run().
|
static |
Definition at line 68 of file process.c.
Referenced by init(), init_funcs(), init_function_pointers(), init_functionpointers(), InitFunctionPointers(), InitFunctionPtrs(), is_lang_english(), START_TEST(), and test_maximum_allowed().
|
static |
Definition at line 68 of file process.c.
Referenced by init(), init_funcs(), InitFunctionPointers(), InitFunctionPtrs(), and START_TEST().
Definition at line 81 of file process.c.
Referenced by _test_accounting(), check_run_child(), encode_handle_attributes(), START_TEST(), test_CommandLine(), test_Console(), test_DebuggingFlag(), test_Directory(), test_DuplicateHandle(), test_Environment(), test_ExitCode(), test_handle_list_attribute(), test_OpenProcess(), test_parent_process_attribute(), test_Startup(), test_SuspendFlag(), and test_Toolhelp().
| BOOL inherit |
Definition at line 77 of file process.c.
Referenced by add_dispinterface_typeinfo(), add_interface_typeinfo(), AddAccessAllowedObjectAce(), AddAccessDeniedObjectAce(), AddAuditAccessObjectAce(), check_child_console_bits(), create_pseudo_console(), CreateProcessA(), CreateProcessAsUserA(), CreateProcessAsUserW(), CreateProcessInternalA(), CreateProcessInternalW(), CreateProcessW(), d3drm_frame3_SetInheritAxes(), DuplicateHandle(), get_open_object_attributes(), OpenEventA(), OpenEventW(), OpenFileMappingFromApp(), OpenFileMappingW(), OpenMutexW(), OpenProcess(), OpenSemaphoreW(), OpenThread(), OpenWaitableTimerW(), test_CreateFileW(), test_CreateProcessCUI(), test_OpenConsoleW(), type_interface_define(), and type_parameterized_interface_define().
| HANDLE job |
Definition at line 79 of file process.c.
Referenced by _test_accounting(), _test_assigned_proc(), addFileHelper(), BackgroundCopyJob_GetError(), BackgroundCopyJob_RemoveCredentials(), BackgroundCopyJob_SetCredentials(), BackgroundCopyJobConstructor(), BackgroundCopyManager_CreateJob(), BackgroundCopyManager_GetJob(), check_bits20(), check_bits25(), do_child(), enum_copy_job_create(), EnumBackgroundCopyFilesConstructor(), EnumBackgroundCopyJobs_Next(), fileTransfer(), http_options_AddRef(), http_options_GetCustomHeaders(), http_options_GetSecurityFlags(), http_options_QueryInterface(), http_options_Release(), http_options_SetCustomHeaders(), http_options_SetSecurityFlags(), is_job_done(), IsProcessInJob(), processFile(), processJob(), progress_callback_http(), progress_callback_local(), set_request_credentials(), START_TEST(), test_AddSelfToJob(), test_BreakawayOk(), test_CompletionPort(), test_create_manager(), test_CreateJob(), test_EnumJobs(), test_globalness(), test_IsProcessInJob(), test_jobInheritance(), test_KillOnJobClose(), test_nested_jobs_child(), test_Next_walkList_1(), test_Next_walkListNull(), test_QueryInformationJobObject(), test_TerminateJobObject(), test_WaitForJobObject(), transfer_file_http(), transfer_file_local(), transitionJobState(), UserHandleGrantAccess(), and wait_for_completion().
Definition at line 83 of file process.c.
Referenced by _test_completion(), ok_child_hexint(), ok_child_int(), ok_child_string(), ok_child_stringWA(), test_job_list_attribute(), and test_nested_jobs_child().
Definition at line 73 of file process.c.
Referenced by DECLARE_INTERFACE_(), GetCommConfig(), GetDefaultCommConfigA(), GetDefaultCommConfigW(), GetTapeParameters(), InternetGetCookieExA(), InternetGetCookieExW(), QueryFullProcessImageNameA(), and QueryFullProcessImageNameW().
Definition at line 73 of file process.c.
Referenced by ExpungeConsoleCommandHistoryA(), ExpungeConsoleCommandHistoryW(), GetConsoleCommandHistoryA(), GetConsoleCommandHistoryLengthA(), GetConsoleCommandHistoryLengthW(), GetConsoleCommandHistoryW(), GetConsoleInputExeNameA(), GetConsoleInputExeNameW(), IntExpungeConsoleCommandHistory(), IntGetConsoleCommandHistory(), IntGetConsoleCommandHistoryLength(), IntSetConsoleNumberOfCommands(), QueryFullProcessImageNameA(), QueryFullProcessImageNameW(), SetConsoleInputExeNameA(), SetConsoleInputExeNameW(), SetConsoleNumberOfCommandsA(), and SetConsoleNumberOfCommandsW().
Definition at line 75 of file process.c.
Referenced by DosCreateProcess().
|
static |
Definition at line 122 of file process.c.
Referenced by _bdf_add_comment(), _bdf_add_property(), _bdf_list_done(), _bdf_list_ensure(), _bdf_list_init(), _bdf_parse_glyphs(), _bdf_parse_start(), _bdf_readstream(), _bdf_set_default_spacing(), _strdup(), _wcsdup(), PrivateFontCollection::AddMemoryFont(), af_autofitter_load_glyph(), af_face_globals_free(), af_face_globals_get_metrics(), af_face_globals_new(), af_glyph_hints_done(), af_glyph_hints_init(), af_glyph_hints_reload(), af_latin_hints_compute_edges(), af_latin_hints_compute_segments(), afm_parse_kern_pairs(), afm_parse_track_kern(), afm_parser_done(), afm_parser_init(), afm_parser_parse(), afm_parser_read_vals(), bdf_create_property(), BDF_Face_Done(), BDF_Face_Init(), bdf_free_font(), bdf_interpret_style(), bdf_load_font(), cf2_arrstack_finalize(), cf2_arrstack_init(), cf2_arrstack_setNumElements(), cf2_decoder_parse_charstrings(), cf2_free_instance(), cf2_interpT2CharString(), cf2_outline_init(), cf2_stack_free(), cf2_stack_init(), cff_blend_build_vector(), cff_blend_doBlend(), cff_charset_done(), cff_charset_load(), cff_cmap_unicode_done(), cff_cmap_unicode_init(), cff_face_done(), cff_face_init(), cff_font_done(), cff_font_load(), cff_index_done(), cff_index_get_name(), cff_index_get_pointers(), cff_index_init(), cff_index_load_offsets(), cff_parser_done(), cff_parser_init(), cff_parser_run(), cff_ps_get_font_extra(), cff_ps_get_font_info(), cff_size_done(), cff_size_init(), cff_vstore_load(), cid_face_done(), cid_face_open(), cid_load_glyph(), cid_parser_new(), cid_read_subrs(), classic_kern_validate(), context_map_bo_address(), d3dx9_file_CreateEnumObject(), D3DXLoadMeshFromXInMemory(), D3DXLoadMeshHierarchyFromXInMemory(), destroy_face(), Destroy_Module(), fci_read(), fci_write(), FNT_Face_Done(), fnt_face_get_dll_font(), FNT_Face_Init(), fnt_font_done(), FNT_Load_Glyph(), FT_Add_Module(), ft_add_renderer(), ft_alloc(), FT_Bitmap_Blend(), FT_Bitmap_Convert(), FT_Bitmap_Copy(), FT_Bitmap_Done(), ft_black_done(), ft_black_new(), FT_ClassicKern_Free(), FT_CMap_Done(), ft_cmap_done_internal(), FT_CMap_New(), FT_DEFINE_GLYPH(), FT_Done_Face(), FT_Done_FreeType(), FT_Done_Glyph(), FT_Done_GlyphSlot(), FT_Done_Library(), FT_Done_Memory(), FT_Done_MM_Var(), FT_Done_Size(), FT_Face_GetCharsOfVariant(), FT_Face_GetVariantSelectors(), FT_Face_GetVariantsOfChar(), ft_free(), FT_GlyphLoader_CheckPoints(), FT_GlyphLoader_CheckSubGlyphs(), FT_GlyphLoader_CreateExtra(), FT_GlyphLoader_Done(), FT_GlyphLoader_New(), FT_GlyphLoader_Reset(), ft_glyphslot_alloc_bitmap(), ft_glyphslot_done(), ft_glyphslot_free_bitmap(), ft_glyphslot_init(), FT_Gzip_Uncompress(), ft_hash_num_init(), ft_hash_num_insert(), ft_hash_str_init(), ft_hash_str_insert(), FT_Init_FreeType(), FT_List_Finalize(), ft_lzwstate_done(), ft_lzwstate_prefix_grow(), ft_lzwstate_stack_grow(), ft_mem_alloc(), ft_mem_dup(), ft_mem_free(), ft_mem_qalloc(), ft_mem_qrealloc(), ft_mem_realloc(), ft_mem_strdup(), FT_New_GlyphSlot(), FT_New_Library(), FT_New_Memory(), FT_New_Size(), ft_open_face_internal(), FT_OpenType_Free(), FT_Outline_Done(), FT_Outline_New(), FT_Raccess_Get_DataOffsets(), ft_raster1_render(), ft_realloc(), ft_remove_renderer(), ft_smooth_render_generic(), FT_Stream_EnterFrame(), FT_Stream_ExitFrame(), FT_Stream_Free(), FT_Stream_New(), FT_Stream_ReleaseFrame(), ft_stroke_border_done(), ft_stroke_border_grow(), ft_stroke_border_init(), FT_Stroker_Done(), FT_Stroker_New(), FT_TrueTypeGX_Free(), ftc_cache_done(), ftc_cache_init(), ftc_cache_resize(), ftc_cmap_node_free(), ftc_cmap_node_new(), ftc_gcache_init(), ftc_inode_free(), FTC_INode_New(), FTC_Manager_Done(), FTC_Manager_New(), FTC_Manager_RegisterCache(), FTC_MruList_Init(), FTC_MruList_New(), FTC_MruList_Remove(), ftc_snode_free(), ftc_snode_load(), FTC_SNode_New(), GdipPrivateAddMemoryFont(), get_mesh_data(), GetPhysicallyInstalledSystemMemory(), grab_memory(), gray_raster_done(), gray_raster_new(), gxv_load_table(), gxv_validate(), hash_insert(), HEAP_free(), HGLOBAL_UserMarshal(), HGLOBAL_UserUnmarshal(), load_truetype_glyph(), mem_free(), open_face(), otv_load_table(), otv_validate(), parse_blend_axis_types(), parse_blend_design_map(), parse_charstrings(), parse_encoding(), parse_fd_array(), parse_subrs(), PCF_Face_Done(), pcf_get_bitmaps(), pcf_get_encodings(), pcf_get_metrics(), pcf_get_properties(), pcf_interpret_style(), pcf_load_font(), pcf_read_TOC(), pfr_extra_item_load_bitmap_info(), pfr_extra_item_load_font_id(), pfr_extra_item_load_kerning_pairs(), pfr_extra_item_load_stem_snaps(), pfr_face_done(), pfr_face_init(), pfr_glyph_done(), pfr_glyph_load_compound(), pfr_glyph_load_simple(), pfr_phy_font_load(), ps_dimension_add_counter(), ps_dimension_add_t1stem(), ps_dimension_done(), ps_dimension_end(), ps_dimension_reset_mask(), ps_dimension_set_mask_bits(), ps_hint_table_alloc(), ps_hinter_init(), ps_hints_apply(), ps_hints_close(), ps_hints_done(), ps_hints_init(), ps_hints_stem(), ps_hints_t1reset(), ps_hints_t1stem3(), ps_hints_t2counter(), ps_hints_t2mask(), ps_mask_set_bit(), ps_mask_table_alloc(), ps_mask_table_done(), ps_mask_table_last(), ps_mask_table_merge(), ps_mask_table_merge_all(), ps_mask_table_set_bits(), ps_parser_init(), ps_parser_load_field(), ps_table_done(), ps_table_new(), ps_table_release(), psh_globals_destroy(), psh_globals_new(), psh_glyph_done(), psh_glyph_init(), psh_glyph_interpolate_normal_points(), reallocate_t1_table(), release_memory(), sfnt_done_face(), sfnt_init_face(), sfnt_load_face(), sfnt_open_font(), sfnt_stream_close(), SystemFunction040(), SystemFunction041(), t1_allocate_blend(), t1_cmap_unicode_done(), t1_cmap_unicode_init(), t1_decoder_done(), T1_Done_Blend(), t1_done_loader(), T1_Face_Done(), T1_Finalize_Parser(), T1_Get_MM_Var(), T1_Get_Private_Dict(), T1_New_Parser(), T1_Open_Face(), T1_Read_Metrics(), T1_Read_PFM(), T42_Face_Done(), T42_Open_Face(), t42_parse_charstrings(), t42_parse_encoding(), t42_parse_sfnts(), t42_parser_done(), t42_parser_init(), test_FDICopy(), test_getname(), test_lock_unlock(), test_StreamOnIStream(), tt_face_done(), tt_face_free_hdmx(), tt_face_free_name(), tt_face_get_name(), tt_face_load_cvt(), tt_face_load_font_dir(), tt_face_load_gasp(), tt_face_load_hdmx(), tt_face_load_name(), and woff_open_font().
Definition at line 123 of file process.c.
Referenced by grab_memory(), and release_memory().
|
static |
Definition at line 110 of file process.c.
Referenced by doChild(), init(), and START_TEST().
|
static |
Definition at line 111 of file process.c.
Referenced by doChild(), init(), and START_TEST().
Definition at line 70 of file process.c.
Referenced by DosLoadExecutableInternal().
Definition at line 78 of file process.c.
Referenced by test_GetProcessInformation(), and test_Toolhelp().
Definition at line 85 of file process.c.
Referenced by DosLoadExecutableInternal().
Definition at line 85 of file process.c.
Referenced by RtlpInitEnvironment().
Definition at line 108 of file process.c.
Referenced by check_run_child(), cmpEnvironment(), getChildString(), getChildStringW(), ok_child_hexint(), ok_child_int(), reload_child_info(), test_CommandLine(), test_Console(), test_DebuggingFlag(), test_Directory(), test_Environment(), test_ExitCode(), test_Startup(), test_StdHandleInheritance(), test_SuspendFlag(), and test_Toolhelp().
Definition at line 79 of file process.c.
Referenced by encode_handle_attributes(), ok_child_hexint(), ok_child_int(), ok_child_string(), test_Console(), test_DebuggingFlag(), test_Startup(), and test_SuspendFlag().
| JOBOBJECTINFOCLASS LPVOID DWORD LPDWORD ret_len |
Definition at line 81 of file process.c.
Referenced by _wgetenv_s(), AdjustTokenGroups(), AdjustTokenPrivileges(), build_dirname(), build_wire_path(), deformat_component(), deformat_environment(), deformat_file(), deformat_index(), deformat_property(), dup_formstr(), fnIMLangFontLink2_GetStrCodePages(), fnIMLangFontLink_GetStrCodePages(), get_decomposition(), get_unique_folder_name(), getenv_s(), GetFileSecurityW(), GetKernelObjectSecurity(), GetPrivateObjectSecurity(), IKsControlImpl_KsEvent(), IKsControlImpl_KsMethod(), IKsControlImpl_KsProperty(), midi_IDirectMusicPort_DeviceIoControl(), mqr_GetLocation(), nt_get_mapped_file_name(), parse_cc_identifier(), parse_key(), test_process_info(), test_QueryInformationJobObject(), test_thread_info(), WICMapGuidToShortName(), and WICMapSchemaToName().
Definition at line 106 of file process.c.
Referenced by _create_process(), init(), START_TEST(), test_BreakawayOk(), test_CommandLine(), test_Console(), test_DebuggingFlag(), test_Directory(), test_Environment(), test_ExitCode(), test_handle_list_attribute(), test_job_list_attribute(), test_nested_jobs(), test_parent_process_attribute(), test_Startup(), test_SuspendFlag(), and test_Toolhelp().
Definition at line 3348 of file process.c.
Referenced by build_startupinfo(), and test_StdHandleInheritance().
Definition at line 83 of file process.c.
Referenced by CreateIoCompletionPort(), get_id_thread(), pattern_fork(), pattern_join(), run_LS_tests(), test_reconnect(), and test_timeouts().
Definition at line 85 of file process.c.
Referenced by do_spawnT(), RtlpInitEnvironment(), and test_process_info().