ReactOS 0.4.16-dev-976-g18fc5a1
|
#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 "winnt.h"
Go to the source code of this file.
Classes | |
struct | proc_thread_attr |
struct | _PROC_THREAD_ATTRIBUTE_LIST |
Variables | |
static HINSTANCE | hkernel32 |
static HINSTANCE | hntdll |
static | PDWORD |
static | PBOOL |
static | LPVOID |
static | SIZE_T |
static | DWORD |
static DWORD | dwFlags |
static DWORD LPSTR | lpExeName |
static DWORD LPSTR PDWORD | lpdwSize |
static | LPSTR |
static LPCWSTR | name |
static HANDLE | process |
static HANDLE | job |
static HANDLE PBOOL | result |
static UINT | exit_code |
static JOBOBJECTINFOCLASS | class |
static JOBOBJECTINFOCLASS LPVOID | info |
static JOBOBJECTINFOCLASS LPVOID DWORD | len |
static JOBOBJECTINFOCLASS LPVOID DWORD LPDWORD | ret_len |
static HANDLE | existing_port |
static HANDLE ULONG_PTR | key |
static HANDLE ULONG_PTR DWORD | threads |
static | PUCHAR |
static | PROCESSINFOCLASS |
static | PVOID |
static | ULONG |
static | PULONG |
static SIZE_T *static | DWORD_PTR |
static char | base [MAX_PATH] |
static char | selfname [MAX_PATH] |
static char * | exename |
static char | resfile [MAX_PATH] |
static int | myARGC |
static char ** | myARGV |
static char | memory [1024 *256] |
static char * | memory_index = memory |
#define INIT_STR "Just some words" |
#define PROCESS_ALL_ACCESS_NT4 (PROCESS_ALL_ACCESS & ~0xf000) |
#define test_accounting | ( | job, | |
total_proc, | |||
active_proc, | |||
terminated_proc | |||
) | _test_accounting(__LINE__, job, total_proc, active_proc, terminated_proc) |
#define test_assigned_proc | ( | job, | |
... | |||
) | _test_assigned_proc(__LINE__, job, __VA_ARGS__) |
#define THREAD_ALL_ACCESS_NT4 (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3ff) |
|
static |
Definition at line 2409 of file process.c.
|
static |
Definition at line 2458 of file process.c.
Definition at line 2422 of file process.c.
|
static |
Definition at line 2390 of file process.c.
Definition at line 1275 of file process.c.
Referenced by test_Environment().
Definition at line 306 of file process.c.
Referenced by START_TEST().
Definition at line 275 of file process.c.
Definition at line 506 of file process.c.
Referenced by cmpEnvironment(), ok_child_string(), test_Console(), test_DebuggingFlag(), test_Startup(), and test_SuspendFlag().
Definition at line 217 of file process.c.
Referenced by START_TEST().
Definition at line 1530 of file process.c.
Referenced by test_Console(), and test_DuplicateHandle().
|
static |
|
static |
Definition at line 565 of file process.c.
Definition at line 129 of file process.c.
Referenced by cmpEnvironment(), test_CommandLine(), test_Console(), test_DebuggingFlag(), test_DetachConsoleHandles(), test_DetachStdHandles(), test_Directory(), test_Environment(), test_ExitCode(), test_Startup(), test_StartupNoConsole(), test_SuspendFlag(), and test_Toolhelp().
|
static |
START_TEST | ( | process | ) |
Definition at line 3928 of file process.c.
Definition at line 549 of file process.c.
Referenced by ok_child_string(), test_Console(), test_DebuggingFlag(), test_Startup(), and test_SuspendFlag().
Definition at line 2908 of file process.c.
Referenced by START_TEST().
Definition at line 2957 of file process.c.
Referenced by START_TEST().
Definition at line 888 of file process.c.
Referenced by START_TEST().
Definition at line 2741 of file process.c.
Referenced by START_TEST().
Definition at line 1535 of file process.c.
Referenced by START_TEST().
Definition at line 1468 of file process.c.
Referenced by START_TEST().
Definition at line 3063 of file process.c.
Referenced by START_TEST().
Definition at line 3486 of file process.c.
Referenced by START_TEST().
Definition at line 1096 of file process.c.
Referenced by START_TEST().
Definition at line 2292 of file process.c.
Referenced by START_TEST().
Definition at line 1329 of file process.c.
Referenced by START_TEST().
Definition at line 1723 of file process.c.
Referenced by START_TEST().
Definition at line 3908 of file process.c.
Referenced by START_TEST().
Definition at line 3747 of file process.c.
Referenced by START_TEST().
Definition at line 3538 of file process.c.
Referenced by START_TEST().
Definition at line 1901 of file process.c.
Referenced by START_TEST().
Definition at line 1866 of file process.c.
Referenced by START_TEST().
Definition at line 2087 of file process.c.
Referenced by START_TEST().
Definition at line 2485 of file process.c.
Referenced by START_TEST().
Definition at line 2133 of file process.c.
Referenced by START_TEST().
Definition at line 2924 of file process.c.
Referenced by START_TEST().
Definition at line 2780 of file process.c.
Referenced by START_TEST().
Definition at line 3779 of file process.c.
Referenced by START_TEST().
Definition at line 1752 of file process.c.
Referenced by START_TEST(), and test_OpenProcess().
Definition at line 3590 of file process.c.
Referenced by START_TEST().
Definition at line 3809 of file process.c.
Referenced by START_TEST().
Definition at line 1942 of file process.c.
Referenced by START_TEST().
Definition at line 1997 of file process.c.
Referenced by START_TEST().
Definition at line 2620 of file process.c.
Referenced by START_TEST().
Definition at line 2227 of file process.c.
Referenced by START_TEST().
Definition at line 3571 of file process.c.
Referenced by START_TEST().
Definition at line 602 of file process.c.
Referenced by START_TEST().
Definition at line 3035 of file process.c.
Referenced by START_TEST().
Definition at line 1420 of file process.c.
Referenced by START_TEST().
Definition at line 2189 of file process.c.
Referenced by START_TEST().
Definition at line 2565 of file process.c.
Referenced by START_TEST().
Definition at line 2255 of file process.c.
Referenced by START_TEST().
Definition at line 1140 of file process.c.
Referenced by START_TEST().
Definition at line 2819 of file process.c.
Referenced by START_TEST().
|
static |
Definition at line 288 of file process.c.
JOBOBJECTINFOCLASS class |
Definition at line 72 of file process.c.
Referenced by do_spawnT().
|
static |
Definition at line 101 of file process.c.
Referenced by debugclient_GetRunningProcessDescriptionWide(), debugclient_GetRunningProcessSystemIdByExecutableNameWide(), DECLARE_INTERFACE_(), init(), main(), test_CommandLine(), test_match_ex(), and test_mode_generic().
UINT exit_code |
Definition at line 78 of file process.c.
Referenced by _CorExeMain(), _cwait(), _wsystem(), CoWaitForMultipleHandles(), crash_and_debug(), crash_and_winedbg(), DECLARE_INTERFACE_(), execute_command(), restart_as_admin_elevated(), run_script_file(), runCmd(), system(), and WshShell3_Run().
|
static |
Definition at line 66 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 66 of file process.c.
Referenced by init(), InitFunctionPointers(), InitFunctionPtrs(), and START_TEST().
Definition at line 79 of file process.c.
Referenced by START_TEST(), test_CommandLine(), test_Console(), test_DebuggingFlag(), test_DetachConsoleHandles(), test_DetachStdHandles(), test_Directory(), test_DuplicateHandle(), test_Environment(), test_ExitCode(), test_GetLogicalProcessorInformationEx(), test_NtSuspendProcess(), test_OpenProcess(), test_Startup(), test_StartupNoConsole(), test_SuspendFlag(), and test_Toolhelp().
HANDLE job |
Definition at line 77 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(), 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_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 81 of file process.c.
Referenced by _test_completion(), ok_child_int(), ok_child_string(), and ok_child_stringWA().
Definition at line 72 of file process.c.
Referenced by DECLARE_INTERFACE_(), GetCommConfig(), GetDefaultCommConfigA(), GetDefaultCommConfigW(), GetTapeParameters(), InternetGetCookieExA(), and InternetGetCookieExW().
Definition at line 72 of file process.c.
Referenced by AddConsoleAliasA(), AddConsoleAliasW(), ExpungeConsoleCommandHistoryA(), ExpungeConsoleCommandHistoryW(), GetConsoleAliasA(), GetConsoleAliasesLengthA(), GetConsoleAliasesLengthW(), GetConsoleAliasW(), GetConsoleCommandHistoryA(), GetConsoleCommandHistoryLengthA(), GetConsoleCommandHistoryLengthW(), GetConsoleCommandHistoryW(), GetConsoleInputExeNameA(), GetConsoleInputExeNameW(), IntAddConsoleAlias(), IntExpungeConsoleCommandHistory(), IntGetConsoleAlias(), IntGetConsoleAliases(), IntGetConsoleAliasesLength(), IntGetConsoleCommandHistory(), IntGetConsoleCommandHistoryLength(), IntSetConsoleNumberOfCommands(), QueryFullProcessImageNameA(), QueryFullProcessImageNameW(), SetConsoleInputExeNameA(), SetConsoleInputExeNameW(), SetConsoleNumberOfCommandsA(), and SetConsoleNumberOfCommandsW().
Definition at line 74 of file process.c.
Referenced by DosCreateProcess().
|
static |
Definition at line 116 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(), grab_memory(), gray_raster_done(), gray_raster_new(), gxv_load_table(), gxv_validate(), hash_insert(), HEAP_free(), HGLOBAL_UserMarshal(), HGLOBAL_UserUnmarshal(), load_truetype_glyph(), main(), 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(), parseAndPrintFile(), 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 117 of file process.c.
Referenced by grab_memory(), and release_memory().
|
static |
Definition at line 104 of file process.c.
Referenced by doChild(), init(), and START_TEST().
|
static |
Definition at line 105 of file process.c.
Referenced by doChild(), init(), and START_TEST().
Definition at line 68 of file process.c.
Referenced by DosLoadExecutableInternal().
Definition at line 76 of file process.c.
Referenced by test_Toolhelp().
Definition at line 83 of file process.c.
Referenced by DosLoadExecutableInternal().
Definition at line 83 of file process.c.
Referenced by RtlpInitEnvironment().
Definition at line 102 of file process.c.
Referenced by cmpEnvironment(), getChildString(), getChildStringW(), ok_child_int(), test_CommandLine(), test_Console(), test_DebuggingFlag(), test_DetachConsoleHandles(), test_DetachStdHandles(), test_Directory(), test_Environment(), test_ExitCode(), test_Startup(), test_StartupNoConsole(), test_SuspendFlag(), and test_Toolhelp().
Definition at line 77 of file process.c.
Referenced by ok_child_int(), ok_child_string(), test_Console(), test_DebuggingFlag(), test_DetachConsoleHandles(), test_Startup(), and test_SuspendFlag().
JOBOBJECTINFOCLASS LPVOID DWORD LPDWORD ret_len |
Definition at line 79 of file process.c.
Referenced by _test_accounting(), _test_assigned_proc(), build_dirname(), build_wire_path(), deformat_component(), deformat_environment(), deformat_file(), deformat_index(), deformat_property(), dup_formstr(), fnIMLangFontLink2_GetStrCodePages(), fnIMLangFontLink_GetStrCodePages(), get_unique_folder_name(), 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 100 of file process.c.
Referenced by _create_process(), init(), START_TEST(), test_BreakawayOk(), test_CommandLine(), test_Console(), test_DebuggingFlag(), test_DetachConsoleHandles(), test_DetachStdHandles(), test_Directory(), test_Environment(), test_ExitCode(), test_jobInheritance(), test_Startup(), test_StartupNoConsole(), test_SuspendFlag(), and test_Toolhelp().
Definition at line 81 of file process.c.
Referenced by pattern_fork(), pattern_join(), run_LS_tests(), and test_reconnect().
Definition at line 83 of file process.c.
Referenced by do_spawnT(), RtlpInitEnvironment(), and test_process_info().