"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/ntdll/process.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

process.c  (wine-5.12.tar.xz):process.c  (wine-5.13.tar.xz)
skipping to change at line 49 skipping to change at line 49
WINE_DEFAULT_DEBUG_CHANNEL(process); WINE_DEFAULT_DEBUG_CHANNEL(process);
static const BOOL is_win64 = (sizeof(void *) > sizeof(int)); static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
/* /*
* Process object * Process object
*/ */
/****************************************************************************** /******************************************************************************
* NtTerminateProcess [NTDLL.@]
*
* Native applications must kill themselves when done
*/
NTSTATUS WINAPI NtTerminateProcess( HANDLE handle, LONG exit_code )
{
return unix_funcs->NtTerminateProcess( handle, exit_code );
}
/******************************************************************************
* RtlGetCurrentPeb [NTDLL.@] * RtlGetCurrentPeb [NTDLL.@]
* *
*/ */
PEB * WINAPI RtlGetCurrentPeb(void) PEB * WINAPI RtlGetCurrentPeb(void)
{ {
return NtCurrentTeb()->Peb; return NtCurrentTeb()->Peb;
} }
/*********************************************************************** /***********************************************************************
* __wine_make_process_system (NTDLL.@) * __wine_make_process_system (NTDLL.@)
skipping to change at line 84 skipping to change at line 74
{ {
HANDLE ret = 0; HANDLE ret = 0;
SERVER_START_REQ( make_process_system ) SERVER_START_REQ( make_process_system )
{ {
if (!wine_server_call( req )) ret = wine_server_ptr_handle( reply->event ); if (!wine_server_call( req )) ret = wine_server_ptr_handle( reply->event );
} }
SERVER_END_REQ; SERVER_END_REQ;
return ret; return ret;
} }
/******************************************************************************
* NtQueryInformationProcess [NTDLL.@]
* ZwQueryInformationProcess [NTDLL.@]
*
*/
NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class
, void *info,
ULONG size, ULONG *ret_len )
{
return unix_funcs->NtQueryInformationProcess( handle, class, info, size, ret
_len );
}
/******************************************************************************
* NtSetInformationProcess [NTDLL.@]
* ZwSetInformationProcess [NTDLL.@]
*/
NTSTATUS WINAPI NtSetInformationProcess( HANDLE handle, PROCESSINFOCLASS class,
void *info, ULONG size )
{
return unix_funcs->NtSetInformationProcess( handle, class, info, size );
}
/******************************************************************************
* NtFlushInstructionCache [NTDLL.@]
* ZwFlushInstructionCache [NTDLL.@]
*/
NTSTATUS WINAPI NtFlushInstructionCache( HANDLE handle, const void *addr, SIZE_T
size )
{
#if defined(__x86_64__) || defined(__i386__)
/* no-op */
#elif defined(HAVE___CLEAR_CACHE)
if (handle == GetCurrentProcess())
{
__clear_cache( (char *)addr, (char *)addr + size );
}
else
{
static int once;
if (!once++) FIXME( "%p %p %ld other process not supported\n", handle, a
ddr, size );
}
#else
static int once;
if (!once++) FIXME( "%p %p %ld\n", handle, addr, size );
#endif
return STATUS_SUCCESS;
}
/**********************************************************************
* NtFlushProcessWriteBuffers [NTDLL.@]
*/
void WINAPI NtFlushProcessWriteBuffers(void)
{
static int once = 0;
if (!once++) FIXME( "stub\n" );
}
/******************************************************************
* NtOpenProcess [NTDLL.@]
* ZwOpenProcess [NTDLL.@]
*/
NTSTATUS WINAPI NtOpenProcess(PHANDLE handle, ACCESS_MASK access,
const OBJECT_ATTRIBUTES* attr, const CLIENT_ID* c
id)
{
NTSTATUS status;
SERVER_START_REQ( open_process )
{
req->pid = HandleToULong(cid->UniqueProcess);
req->access = access;
req->attributes = attr ? attr->Attributes : 0;
status = wine_server_call( req );
if (!status) *handle = wine_server_ptr_handle( reply->handle );
}
SERVER_END_REQ;
return status;
}
/******************************************************************************
* NtResumeProcess
* ZwResumeProcess
*/
NTSTATUS WINAPI NtResumeProcess( HANDLE handle )
{
NTSTATUS ret;
SERVER_START_REQ( resume_process )
{
req->handle = wine_server_obj_handle( handle );
ret = wine_server_call( req );
}
SERVER_END_REQ;
return ret;
}
/******************************************************************************
* NtSuspendProcess
* ZwSuspendProcess
*/
NTSTATUS WINAPI NtSuspendProcess( HANDLE handle )
{
NTSTATUS ret;
SERVER_START_REQ( suspend_process )
{
req->handle = wine_server_obj_handle( handle );
ret = wine_server_call( req );
}
SERVER_END_REQ;
return ret;
}
/*********************************************************************** /***********************************************************************
* restart_process * restart_process
*/ */
NTSTATUS restart_process( RTL_USER_PROCESS_PARAMETERS *params, NTSTATUS status ) NTSTATUS restart_process( RTL_USER_PROCESS_PARAMETERS *params, NTSTATUS status )
{ {
static const WCHAR argsW[] = {'%','s','%','s',' ','-','-','a','p','p','-','n ','a','m','e',' ','"','%','s','"',' ','%','s',0}; static const WCHAR argsW[] = {'%','s','%','s',' ','-','-','a','p','p','-','n ','a','m','e',' ','"','%','s','"',' ','%','s',0};
static const WCHAR winevdm[] = {'w','i','n','e','v','d','m','.','e','x','e', 0}; static const WCHAR winevdm[] = {'w','i','n','e','v','d','m','.','e','x','e', 0};
static const WCHAR comW[] = {'.','c','o','m',0}; static const WCHAR comW[] = {'.','c','o','m',0};
static const WCHAR pifW[] = {'.','p','i','f',0}; static const WCHAR pifW[] = {'.','p','i','f',0};
skipping to change at line 243 skipping to change at line 122
winevdm, params->ImagePathName.Buffer, params->CommandLine.Buf fer ); winevdm, params->ImagePathName.Buffer, params->CommandLine.Buf fer );
RtlInitUnicodeString( &pathW, winevdm ); RtlInitUnicodeString( &pathW, winevdm );
RtlInitUnicodeString( &cmdW, cmdline ); RtlInitUnicodeString( &cmdW, cmdline );
status = unix_funcs->exec_process( &pathW, &cmdW, status ); status = unix_funcs->exec_process( &pathW, &cmdW, status );
break; break;
} }
return status; return status;
} }
/********************************************************************** /**********************************************************************
* NtCreateUserProcess (NTDLL.@)
*/
NTSTATUS WINAPI NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_
handle_ptr,
ACCESS_MASK process_access, ACCESS_MASK thr
ead_access,
OBJECT_ATTRIBUTES *process_attr, OBJECT_ATT
RIBUTES *thread_attr,
ULONG process_flags, ULONG thread_flags,
RTL_USER_PROCESS_PARAMETERS *params, PS_CRE
ATE_INFO *info,
PS_ATTRIBUTE_LIST *attr )
{
return unix_funcs->NtCreateUserProcess( process_handle_ptr, thread_handle_pt
r,
process_access, thread_access,
process_attr, thread_attr,
process_flags, thread_flags,
params, info, attr );
}
/**********************************************************************
* RtlCreateUserProcess (NTDLL.@) * RtlCreateUserProcess (NTDLL.@)
*/ */
NTSTATUS WINAPI RtlCreateUserProcess( UNICODE_STRING *path, ULONG attributes, NTSTATUS WINAPI RtlCreateUserProcess( UNICODE_STRING *path, ULONG attributes,
RTL_USER_PROCESS_PARAMETERS *params, RTL_USER_PROCESS_PARAMETERS *params,
SECURITY_DESCRIPTOR *process_descr, SECURITY_DESCRIPTOR *process_descr,
SECURITY_DESCRIPTOR *thread_descr, SECURITY_DESCRIPTOR *thread_descr,
HANDLE parent, BOOLEAN inherit, HANDLE deb ug, HANDLE exception, HANDLE parent, BOOLEAN inherit, HANDLE deb ug, HANDLE exception,
RTL_USER_PROCESS_INFORMATION *info ) RTL_USER_PROCESS_INFORMATION *info )
{ {
OBJECT_ATTRIBUTES process_attr, thread_attr; OBJECT_ATTRIBUTES process_attr, thread_attr;
 End of changes. 3 change blocks. 
149 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)