Commit Graph

269 Commits

Author SHA1 Message Date
Alexandre Julliard d8582d97a0 kernel32: Move process/thread attribute list functions to kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 15:24:52 +02:00
Alexandre Julliard 09f588ee69 kernel32: Move some process functions to kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 15:24:52 +02:00
Alexandre Julliard f2e7e1658b kernel32: Move more thread functions to kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 14:49:48 +02:00
Alexandre Julliard 862cc117c1 kernel32: Set the path environment variables according to the WoW64 environment.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47467
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-06 17:06:39 +02:00
Jacek Caban 5e0b0d3521 server: Rename cpu_type_t to client_cpu_t.
To avoid conflicts with mac headers.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-05 17:43:53 +02:00
Alexandre Julliard d5400af782 kernel32: Set environment variables for the various Wine paths.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-05 11:38:15 +02:00
Jacek Caban 4f1185d21e kernel32: Terminate process in unhandled exception handler.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-04 21:14:54 +02:00
Alexandre Julliard aa58676ae0 kernel32: Move wait functions to kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 20:42:42 +02:00
Alexandre Julliard 32fdffac42 include: Implement some inline functions in C instead of assembly.
This way the same code can be used on all platforms.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-26 23:08:53 +02:00
Alexandre Julliard 170bd8f361 include: Pass function name directly to the __ASM_STDCALL macro.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-16 19:00:10 +02:00
Alexandre Julliard d5a372abbb include: Move inline assembly definitions to a new wine/asm.h header.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 13:45:07 +02:00
Roman Stingler 52065a31d7 kernel32: Added some Numa stubs.
Signed-off-by: Roman Stingler <roman.stingler@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-13 13:44:11 +02:00
Alexandre Julliard 171dab0696 kernel32: Reset stdio file descriptors when passed invalid handles.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-07 15:03:29 -05:00
Alexandre Julliard 59e1d114a4 kernel32: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-07 11:31:05 -05:00
Ken Thomases 4dd5e533b1 kernel32: Remove some duplicate code.
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-07 17:58:10 +01:00
Brendan McGrath 87917df887 kernel32: Allow double quote style escape in argv.
Two quotes together (within outer quotes) represents a single
quote (with the first quote acting as an escape character)

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46721
Signed-off-by: Brendan McGrath <brendan@redmandi.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-04 13:13:29 +01:00
Alexandre Julliard 42df4dccd5 ntdll: Return the kernel process start address from __wine_kernel_init().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-14 17:57:09 +01:00
Alexandre Julliard 156965eae9 server: Create the windows directories at startup if necessary.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-12 23:02:28 +01:00
Alexandre Julliard 013c51aca0 makefiles: Create 64-bit wine loader symlinks in the WoW64 build tree.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-26 14:21:29 +01:00
Michael Stefaniuc d9c7d4147b kernel32: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-14 23:11:31 +01:00
Alexandre Julliard 2769bb1e9b kernel32: Add CreateProcessAsUserA/W.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-26 21:18:26 +02:00
Alexandre Julliard cdddf02d0c kernel32: Implement CreateProcessInternalA/W.
Based on a patch by Michael Müller.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-26 13:29:10 +02:00
Alexandre Julliard 7a8ff7fab3 kernel32: Avoid setting an empty current directory in the process params.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-24 16:58:08 +02:00
Alexandre Julliard 1a561b640b kernel32: Use the Unicode string length to build the argv array.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-24 16:58:08 +02:00
Alexandre Julliard 33c3cee817 kernel32: Get std handles from the process parameters.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-24 16:58:08 +02:00
Jactry Zeng ebc0e5ffb5 kernel32: Don't check a discarded variable.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-24 16:58:05 +02:00
Alexandre Julliard 7e96514029 kernel32: Separate the exec process functionality.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-22 11:56:47 +02:00
Alexandre Julliard a77ef5c443 server: Add a separate request to exec a new process.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-22 11:44:25 +02:00
Nikolay Sivov 7d1cef5409 kernel32: Add GetProcessMitigationPolicy() stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-22 11:36:05 +02:00
Alexandre Julliard c4d85843c0 kernel32: Get the current directory from the process parameters in create_cmd_process().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-16 22:26:07 +02:00
Alexandre Julliard ec0c5a11fd kernel32: Move environment Unicode conversion into create_process_params().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-16 20:46:34 +02:00
Alexandre Julliard 27ba57e804 kernel32: Pass the standard process parameters structure to fork_and_exec().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 20:13:51 +02:00
Alexandre Julliard ed551282b4 kernel32: Pass the standard process parameters structure to create_process().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 20:13:51 +02:00
Alexandre Julliard 79e2afaaae kernel32: Build a standard process parameters structure in CreateProcess().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-11 18:08:02 +02:00
Alexandre Julliard 0964b3cd13 kernel32: Use the CPU type from the image information in CreateProcess().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-11 18:07:34 +02:00
Alexandre Julliard 03e05c1f57 ntdll: Implement RtlSetUnhandledExceptionFilter().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-09 14:49:54 +02:00
Alexandre Julliard fd60a33e5d kernel32: Pass the full filename to winevdm.exe in CreateProcessW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-08 20:26:32 +02:00
Alexandre Julliard 2475cb767d kernel32: Make a copy of the process environment in CreateProcessW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-08 18:23:23 +02:00
Alexandre Julliard dc0ec5502d kernel32: Create a fresh PE info structure when running winevdm.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-28 19:26:42 +02:00
Alexandre Julliard ec13f6ec2a kernel32: Get rid of the binary_info structure.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-27 14:55:32 +02:00
Alexandre Julliard df637816bc kernel32: Return the binary type from get_binary_info().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-27 14:55:19 +02:00
Alexandre Julliard da40de3ced kernel32: Determine 32/64-bitness from the PE architecture.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-27 14:55:18 +02:00
Alexandre Julliard 9d3a5a969c kernel32: Retrieve binary information from the server for PE files.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-27 14:54:59 +02:00
Alexandre Julliard 8b492467d9 kernel32: Move MODULE_get_binary_info implementation to process.c.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-27 13:27:28 +02:00
Alexandre Julliard 1060567cc5 kernel32: Remove the DOS/Win16/OS2 binary distinction.
They all need to be run through winevdm.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-25 21:45:04 +02:00
Alexandre Julliard ac7ae92af1 server: Allow specifying the security descriptor for a new process.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 14:50:48 +02:00
Alexandre Julliard 39afcaac4a server: Create the initial thread as a separate request.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 14:50:48 +02:00
André Hentschel 7e39544bfa kernel32: Add stub for SetProcessWorkingSetSizeEx.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45523
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-17 18:35:33 +02:00
Qian Hong 279ac253e5 kernel32: Fallback to default comspec when %COMSPEC% is not set.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=19801
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-03 19:44:43 +02:00
Louis Lenders ad8f450957 kernel32: Add stub for GetApplicationRestartSettings.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:36 +02:00