Alexandre Julliard
5fa8713ddc
ntdll: No longer store the mapping handle with the view.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-26 17:01:45 +02:00
Alexandre Julliard
ab182dbf06
server: No longer store the mapping object in the dll structure.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-26 17:01:45 +02:00
Alexandre Julliard
bc39a7460e
server: Remove no longer used is_same_file() function.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-26 17:01:45 +02:00
Alexandre Julliard
aa90910e93
server: Implement NtAreMappedFilesTheSame functionality on the server side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-26 17:01:45 +02:00
Alexandre Julliard
b1b4f5d451
server: Store the mapped file descriptor in the memory view.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-26 17:01:45 +02:00
Alexandre Julliard
26314a56d3
server: Access the list of committed ranges directly from the mapped view.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-26 17:01:44 +02:00
Alexandre Julliard
7e6cf601f4
server: Make the memory ranges structure into a proper object.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-26 17:01:44 +02:00
Alexandre Julliard
a557934c76
server: Keep track of mapped memory views.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-26 17:01:44 +02:00
Alexandre Julliard
38d0aa68da
server: Always make pipes non-blocking.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-22 15:11:55 +02:00
Alexandre Julliard
0eefa76791
ntdll: Suspend the process before attaching dlls, using the process initial context.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-19 12:43:00 +02:00
Alexandre Julliard
cb7f04ce6f
server: Don't return debug registers unless explicitly requested.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-18 15:50:34 +02:00
Alexandre Julliard
1c8a36a91c
ntdll: Pass the mapping file access instead of the protection bits to the server.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-12 20:32:01 +02:00
Alexandre Julliard
5073beaefe
ntdll: Store the SEC_* section flags directly in the view protection.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:15 +02:00
Alexandre Julliard
b2624ab99a
ntdll: Remove the no longer used VPROT_NOEXEC flag.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:15 +02:00
Alexandre Julliard
e5c39a565a
server: Enforce valid flags for file mappings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:14 +02:00
Alexandre Julliard
abe0b1c57b
server: Initialize debug registers in new threads if necessary.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-27 17:04:04 +02:00
Alexandre Julliard
9a07d210f1
server: Add a platform-specific entry point to initialize registers of a new thread.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-27 17:04:04 +02:00
Jacek Caban
f706d9f08f
server: Remove no loner needed fd NULL check (Coverity).
...
Spotted by Marcus Meissner.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-21 15:19:47 +02:00
Alexandre Julliard
bcbc84e214
user32: Don't exclude clipped children from the copied window bits since they may be up to date.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-20 10:41:43 +02:00
Alexandre Julliard
4f88a57ce7
server: Return the top surface window even when not using OpenGL.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 11:05:15 +02:00
Jacek Caban
82e6713b75
server: Don't allow APCs on objects associated with completion port.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-10 20:51:11 +02:00
Jacek Caban
23dce6881b
server: Call create_irp from queue_irp.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-05 10:43:49 +02:00
Jacek Caban
7b33613fc4
server: Make fd_queue_async infallible.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-05 10:43:14 +02:00
Jacek Caban
99dfb29048
server: Remove no longer needed NULL checks.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-05 10:41:58 +02:00
Jacek Caban
0b4c8bf93f
server: Make async_queue object a simple list instead of a server object.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-05 10:39:54 +02:00
Jacek Caban
7f17bae74e
server: Store completion in async object instead of async_queue.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-05 10:33:44 +02:00
Jacek Caban
9df88c3055
server: Keep weak fd reference in async object when async is queued.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-05 10:32:19 +02:00
Akihiro Sagawa
4fbabc2add
tools: Support multiple error name tokens in a line.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 19:25:47 +02:00
Jacek Caban
37804f1ec5
server: Keep ifchange queue through sock object life time.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 15:57:46 +02:00
Jacek Caban
54234b8a47
server: Associate named pipe device waiters queue with its fd.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 15:57:46 +02:00
Jacek Caban
328f178c25
server: Use default poll only for default read and write queue asyncs.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 15:57:46 +02:00
Jacek Caban
84bc9c3d56
server: Remove no longer needed need_handle from queue_irp.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:35:46 +02:00
Jacek Caban
10c1f245e4
server: Use create_request_async in flush request handler.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:35:33 +02:00
Jacek Caban
c56c42ff79
server: Use create_request_async in ioctl request handler.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:32:49 +02:00
Jacek Caban
74364ed017
server: Allow async_handoff users to set result themselves.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:29:27 +02:00
Jacek Caban
fa0dfe5967
server: Store fd reference in async object for unqueued asyncs.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:29:04 +02:00
Jacek Caban
2bd828b13c
server: Use create_request_async for write requests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:23:36 +02:00
Jacek Caban
879d46e456
server: Return async result directly instead of via APCs if it's available.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:23:35 +02:00
Jacek Caban
0e0834ae92
server: Close async wait handle when wait is satisfied.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:23:35 +02:00
Jacek Caban
0fb6099b01
server: Preallocate wait handle in create_request_async and return it in read request.
...
alloc_handle is failable and when we're returning the handle, handling
error properly is not really possible.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:23:35 +02:00
Alexandre Julliard
e0760ce933
server: Call the satisfied methods after removing the thread wait.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:23:35 +02:00
Jacek Caban
26c5336494
server: Introduce create_server_async and use it in read request handler.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-20 11:45:52 +02:00
Michael Müller
a78d419420
server: Assign a default label to all tokens.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-19 09:50:32 +02:00
Sebastian Lackner
4fc5d8873c
server: Do not shutdown server in persistent mode when creation of first process fails.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-19 09:48:08 +02:00
Michael Müller
7c08e787b1
server: Implement setting a security descriptor when duplicating tokens.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-15 11:12:24 +02:00
Michael Müller
187b53e5a5
server: Do not set SE_{D, S}ACL_PRESENT if no {D, S}ACL was set.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-15 11:09:16 +02:00
Michael Müller
af2d01c2fa
server: Implement changing the label of a security descriptor.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-15 11:08:59 +02:00
Michael Müller
2ebe679638
server: Implement querying the security label of a security descriptor.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-15 10:50:54 +02:00
Ken Thomases
1984e86b44
server: On macOS, don't use clock_gettime() even if it's available.
...
The problem is building against the 10.12 or later SDK but deploying to 10.11
or earlier. Support for clock_gettime() is new with 10.12 so configure finds
it and the code uses it, but the symbol is weak linked and resolves to NULL
when running on earlier versions.
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-02 10:33:16 +02:00
Alexandre Julliard
719e28bd2c
server: Don't increment the clipboard sequence number for delayed rendering or synthesized formats.
...
Based on a patch by Piotr Caban.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-24 13:03:39 +02:00
Zebediah Figura
d37bfe960f
kernel32: Implement bytes left in PeekNamedPipe().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-22 13:46:18 +02:00
Alex Henrie
146cf041d9
ntdll: Always fill PagefileUsage counter with a nonzero value on Linux.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-17 21:57:12 +02:00
Jacek Caban
b76c1b468a
server: Allocate wait handle on async object in queue_irp.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 11:46:34 -05:00
Alex Henrie
19a79f4228
ntdll: Implement ProcessVmCounters for Linux for other processes.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-09 16:37:42 -05:00
Alexandre Julliard
c43f13c3e4
server: Store the SERIAL_TIMEOUTS structure directly in the object.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-05 14:12:16 +02:00
Alexandre Julliard
e77873da73
server: Implement IOCTL_SERIAL_GET_WAIT_MASK as an ioctl on the server side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-05 14:11:15 +02:00
Alexandre Julliard
b7b9c4eaa6
server: Implement IOCTL_SERIAL_SET_WAIT_MASK as an ioctl on the server side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-05 14:11:14 +02:00
Alexandre Julliard
84e97cf604
server: Implement IOCTL_SERIAL_SET_TIMEOUTS as an ioctl on the server side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-05 13:04:20 +02:00
Alexandre Julliard
a682420b58
server: Implement IOCTL_SERIAL_GET_TIMEOUTS as an ioctl on the server side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-05 13:04:20 +02:00
Alexandre Julliard
655e5e8c70
configure: Add a separate variable for wineloader-specific flags.
...
And apply the common link flags also to the wineserver.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-28 15:01:38 +02:00
Daniel Lehman
47df3778aa
server: Fix copy & paste for number of subkeys.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-25 20:53:08 +02:00
Jacek Caban
f6b2ccc54b
server: Use common get_fd_type implementation for both pipe end implementations.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-24 15:29:40 +02:00
Piotr Caban
6a0ffd70c7
server: Update all children upon SetLayeredWindowAttributes.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 20:02:54 +02:00
Jacek Caban
aa1580398e
server: Remove no longer needed blocking requests arguments.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-12 19:12:52 +02:00
Jacek Caban
9d666869f3
server: Remove no longer needed blocking argument from flush fd op.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-12 19:11:29 +02:00
Jacek Caban
c9d9adaf65
server: Remove no longer needed blocking argument from write fd op.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-12 19:11:27 +02:00
Jacek Caban
5e584e936b
server: Remove no longer needed blocking argument from read fd op.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-12 19:11:26 +02:00
Jacek Caban
047062b28b
server: Remove no longer needed blocking argument from ioctl fd op.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-12 19:11:24 +02:00
Jacek Caban
5126849f7f
server: Use async_is_blocking in queue_irp.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-12 19:11:22 +02:00
Jacek Caban
5c8d11270d
server: Introduce async_is_blocking helper and use it in sock_ioctl.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-12 19:11:20 +02:00
Jacek Caban
fbf241034c
server: Removed no longed needed APC from APC_ASYNC_IO reply.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 19:58:40 +02:00
Jacek Caban
5c0e2965bc
server: Use stored APC in async_set_result.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 19:58:12 +02:00
Jacek Caban
28c339031f
server: Pass APC in async_data_t.
...
Also don't pass callback pointer that's not used anymore.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 19:57:34 +02:00
Jacek Caban
975c5381ed
server: Added support for flushing client pipe.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-27 16:54:24 +02:00
Jacek Caban
aa472f5eb5
server: Added support for message mode named pipe reads.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-27 16:54:24 +02:00
Jacek Caban
b682e1c41d
server: Use server-side I/O for message mode named pipes.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 21:07:09 +01:00
Jacek Caban
197674669e
server: Don't release client fd in do_disconnect for pipes in server-side I/O mode.
...
If server closes without disconnect, it should be still possible to read
remaining buffered data.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 21:06:58 +01:00
Jacek Caban
56ae76ce84
server: Implement server-side named pipe read.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 21:06:49 +01:00
Jacek Caban
d4139833c1
server Introduce read queue for server-side named pipe I/O.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 21:06:47 +01:00
Jacek Caban
134c83203a
server: Added server-side FSCTL_PIPE_PEEK implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 18:52:58 +01:00
Jacek Caban
7ae689d668
server: Implement server-side named pipe write.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 18:51:51 +01:00
Jacek Caban
4b2d5171e0
server Introduce write queue for server-side named pipe I/O.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 18:50:32 +01:00
Jacek Caban
2fad531cb5
server: Implement disconnecting message queue.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 18:50:19 +01:00
Jacek Caban
9db22fdfcf
server: Introduce pipe message queue.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 18:50:15 +01:00
Jacek Caban
ae5684479e
server: Use no_fd_queue_async for named pipe ends in server I/O mode.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-20 19:36:55 +01:00
Jacek Caban
a8023d300c
server: Introduce server-side I/O mode for named pipes.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-20 19:36:45 +01:00
Jacek Caban
c5afc9f9b6
server: Store buffer size in pipe_end.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-20 19:36:37 +01:00
Jacek Caban
316112e3b4
server: Store connected pipe_end in pipe_end struct.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-20 19:36:35 +01:00
Sebastian Lackner
332d592158
server: Explicitly mark memory as undefined in mem_alloc wrapper.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-09 10:28:53 +01:00
Jacek Caban
e50d49c17a
server: Moved server-independent parts of pipe_server_flush into separated function.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-22 20:20:55 +01:00
Jacek Caban
8989867544
server: Introduced new pipe_end struct containing common parts of pipe_client and pipe_server.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-22 20:20:53 +01:00
Jacek Caban
a3acdf117f
server: Pass existing async object to fd_queue_async.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-22 20:20:50 +01:00
Jacek Caban
a9c51f4e8a
server: Create async object in flush request handler.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 14:24:13 +01:00
Jacek Caban
bede6499ed
server: Create async object in ioctl request handler.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 14:24:11 +01:00
Jacek Caban
a604db1261
server: Create async object in register_async handler.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 14:22:48 +01:00
Jacek Caban
8ef4f9a0c8
server: Create async objects in read and write request handlers.
...
async_get_data allows splitting patches, but will be removed later in
the series.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 14:22:46 +01:00
Jacek Caban
91bd81441f
server: Allow creating async object not associated with a queue.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 14:22:44 +01:00
Jacek Caban
13daca6f1a
server: Removed no longer needed user_arg from irp_call struct.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 14:22:41 +01:00
Jacek Caban
13204d87cf
server: Choose newer async object when searching from client pointer.
...
This fixes a race. Client may release and reuse async pointer while
processing APC_ASYNC_IO. It is, however, guaranteed that
get_async_result will be called on the newest one known to the server.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 22:46:58 +01:00
Michael Müller
0e49e0541f
server: Give all access rights when opening an object with MAXIMUM_ALLOWED.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 11:37:02 +01:00
Sebastian Lackner
0e42bce0b6
server: Fix handling of MAXIMUM_ALLOWED in token_access_check.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-03 19:05:10 +01:00
Jacek Caban
cf08bd0e38
server: Create iosb objects inside read/write request handlers.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 21:19:38 +01:00
André Hentschel
6b85b31b00
server: Remove dead assignment (clang).
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 08:52:09 +01:00
Gerald Pfeifer
4598d32ab4
server: Remove dead check in is_cpu_supported().
...
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 17:17:18 +01:00
Jacek Caban
d055d3d121
server: Use async object to transfer IRP result to client.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-05 16:11:03 +01:00
Jacek Caban
64dc8f5c48
server: Store iosb in async object.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-05 16:11:03 +01:00
Jacek Caban
d2b3c6c3f9
server: Introduced iosb struct for server-side IO_STATUS_BLOCK representation and use it in irp_call.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-05 16:11:03 +01:00
Jacek Caban
d8bfbbdc07
server: Signal pipe server fd in create_pipe_server.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-02 15:56:05 +01:00
Jacek Caban
6ffe08459f
server: Cancel process asyncs on process termination.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-01 15:25:34 +01:00
Jacek Caban
ad1e0609a0
server: Get rid of no loner used cancel_async from fd_ops.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-01 13:50:59 +01:00
Jacek Caban
055918c982
server: Store async list in process object and use that to find async in cansel_async request.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-01 13:50:27 +01:00
Alexandre Julliard
86ec169712
server: Get rid of the clipboard owner thread field.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-02 17:10:35 +01:00
Alexandre Julliard
a5f42fcd6e
server: Get rid of the set_clipboard_info request.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-02 17:07:54 +01:00
Jacek Caban
5b2dc08307
server: Allow caching device file handles.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-28 18:35:55 +02:00
Ken Thomases
780ede1cde
server: Make disconnecting a named pipe immediately close the client's connection and allow the server to initiate a new connection.
...
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-21 13:39:10 +02:00
Roman Pisl
ddfc5275af
process: Make PROCESS_QUERY_LIMITED_INFORMATION sufficient for QueryFullProcessImageName().
...
Signed-off-by: Roman Pisl <rpisl@seznam.cz>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:55:14 -07:00
Jacek Caban
60f8ddbf9d
server: Create ifchange async queue on socket fd.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-13 18:22:00 +02:00
Jacek Caban
93863d25fc
ws2_32: Pass completion routing to NtDeviceIoControlFile in server_ioctl_sock only if caller provided completion routine.
...
Otherwise we're always doing non-blocking calls, preventing server from
doing the right thing (and in actually doing the opposite in
WS_SIO_ADDRESS_LIST_CHANGE case).
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-13 18:21:11 +02:00
Sebastian Lackner
b6b54fa14a
server: Handle error when memdup fails in synthesize_formats.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-01 04:38:41 +02:00
Sebastian Lackner
547d7eded3
server: Fix leak of old clipboard data when replacing existing format.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 00:06:51 +09:00
Alexandre Julliard
f0fbf1a9d1
user32: Cache clipboard data on the client side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 15:12:21 +09:00
Alexandre Julliard
9ed8f5e83f
user32: Add synthesized clipboard formats on the server side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 15:06:10 +09:00
Alexandre Julliard
3044935b0e
user32: Retrieve clipboard data from the server.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 14:48:32 +09:00
Alexandre Julliard
c69b4995c5
user32: Retrieve available clipboard formats from the server.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 14:20:41 +09:00
Alexandre Julliard
79f90e4e41
user32: Store clipboard data on the server side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 14:20:26 +09:00
Alexandre Julliard
99408d7859
server: Get rid of the clipboard sequence number update hack.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-23 20:30:35 +09:00
Sebastian Lackner
808619b72d
server: Allow to create win32 prefix when directory already exists.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-22 12:46:01 +09:00
Alexandre Julliard
305d89f1ed
server: Return the owner window in the close_clipboard request.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 16:25:08 +09:00
Alexandre Julliard
2bf890d95f
server: Return the owner window in the release_clipboard request.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 16:25:07 +09:00
Sebastian Lackner
7c06f1c218
server: Do not store unix_pid in process_snapshot struct.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 23:54:44 +09:00
Alexandre Julliard
2b8021d4d0
server: Don't release the clipboard owner window when the owner thread terminates.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 22:14:22 +09:00
Alexandre Julliard
bddab0e7f8
server: Add a release_clipboard request, and notify the owner and viewer on release.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 22:02:04 +09:00
Alexandre Julliard
438dae524d
server: Avoid some compiler warnings when EWOULDBLOCK == EAGAIN.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-30 19:09:20 +09:00
Alexandre Julliard
70dd64cf97
server: Add a helper function to validate a window handle.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-30 18:08:36 +09:00
Alexandre Julliard
c6f12bd9cc
server: Notify all listeners when the contents of the clipboard have changed.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-30 16:33:04 +09:00
Alexandre Julliard
35537b1d45
server: Implement Add/RemoveClipboardFormatListener.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 23:54:40 +09:00
Alexandre Julliard
19d16a7cb1
server: Add some validation of clipboard window handles.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 21:31:50 +09:00
Alexandre Julliard
5962df3a1e
server: Cleanup clipboard information upon window destruction.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-24 00:16:43 +09:00
Alexandre Julliard
42c221db6c
user32: Don't allow SetClipboardData if the clipboard is not open.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-23 17:35:18 +09:00
Alexandre Julliard
79d2e0a9be
server: Add a request to return clipboard information.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-23 16:29:00 +09:00
Alexandre Julliard
98b24dcb50
server: Add a separate request to set the clipboard viewer.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 23:05:20 +09:00
Alexandre Julliard
7258793169
server: Add separate requests for opening and closing the clipboard.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 16:20:53 +09:00
Hugh McMaster
f592f931b2
server: Get and set the console pop-up color attributes.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-11 23:31:53 +09:00
Hugh McMaster
2d7c73d802
server: Get and set the console color table.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-11 23:31:52 +09:00
Piotr Caban
84b3218ed6
server: Fix loading of IMAGE_OPTIONAL_HEADER.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-09 00:56:00 +09:00
Alexandre Julliard
ef716e9d1e
server: Don't grow the mapped file for read-only mappings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-27 22:21:07 +09:00
Alexandre Julliard
32c7153fdb
server: Avoid rounding mapping sizes on the server side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-27 17:03:03 +09:00
Alexandre Julliard
6f0979b983
ntdll: Implement the SectionImageInformation class of NtQuerySection.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-26 20:33:16 +09:00
Alexandre Julliard
2602df14d8
ntdll: Implement the SectionBasicInformation class of NtQuerySection.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-26 20:32:10 +09:00
Alexandre Julliard
1ddc636051
server: Store the section flags separately from the protection.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-26 14:20:02 +09:00