Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0faceb05
Commit
0faceb05
authored
Jan 18, 2002
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented interprocess DDE message posting.
parent
9e99d2b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
message.c
dlls/user/message.c
+0
-0
queue.c
server/queue.c
+21
-4
No files found.
dlls/user/message.c
View file @
0faceb05
This diff is collapsed.
Click to expand it.
server/queue.c
View file @
0faceb05
...
...
@@ -749,7 +749,7 @@ DECL_HANDLER(send_message)
switch
(
msg
->
type
)
{
case
MSG_OTHER_PROCESS
:
case
MSG_OTHER_PROCESS
:
msg
->
data_size
=
get_req_data_size
();
if
(
msg
->
data_size
&&
!
(
msg
->
data
=
memdup
(
get_req_data
(),
msg
->
data_size
)))
{
...
...
@@ -771,6 +771,13 @@ DECL_HANDLER(send_message)
set_queue_bits
(
recv_queue
,
QS_SENDMESSAGE
);
break
;
case
MSG_POSTED
:
/* needed for posted DDE messages */
msg
->
data_size
=
get_req_data_size
();
if
(
msg
->
data_size
&&
!
(
msg
->
data
=
memdup
(
get_req_data
(),
msg
->
data_size
)))
{
free
(
msg
);
break
;
}
append_message
(
&
recv_queue
->
msg_list
[
POST_MESSAGE
],
msg
);
set_queue_bits
(
recv_queue
,
QS_POSTMESSAGE
);
break
;
...
...
@@ -803,8 +810,12 @@ static void return_message_to_app( struct msg_queue *queue, int flags,
struct
get_message_reply
*
reply
,
struct
message
*
msg
,
enum
message_kind
kind
)
{
assert
(
!
msg
->
data_size
);
/* posted messages can't have data */
reply
->
total
=
msg
->
data_size
;
if
(
msg
->
data_size
>
get_reply_max_size
())
{
set_error
(
STATUS_BUFFER_OVERFLOW
);
return
;
}
reply
->
type
=
msg
->
type
;
reply
->
win
=
msg
->
win
;
reply
->
msg
=
msg
->
msg
;
...
...
@@ -814,16 +825,22 @@ static void return_message_to_app( struct msg_queue *queue, int flags,
reply
->
y
=
msg
->
y
;
reply
->
time
=
msg
->
time
;
reply
->
info
=
msg
->
info
;
reply
->
total
=
0
;
/* raw messages always get removed */
if
((
msg
->
type
==
MSG_HARDWARE_RAW
)
||
(
flags
&
GET_MSG_REMOVE
))
{
queue
->
last_msg
=
NULL
;
if
(
msg
->
data
)
{
set_reply_data_ptr
(
msg
->
data
,
msg
->
data_size
);
msg
->
data
=
NULL
;
msg
->
data_size
=
0
;
}
remove_queue_message
(
queue
,
msg
,
kind
);
}
else
/* remember it as the last returned message */
{
if
(
msg
->
data
)
set_reply_data
(
msg
->
data
,
msg
->
data_size
);
queue
->
last_msg
=
msg
;
queue
->
last_msg_kind
=
kind
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment