View Issue Details

Category
SSPBT:本体(SSP)
SeverityfeatureReproducibilityN/A 
Status closed 
Fixed in Version2.5 (リリース) 
Summary0000380: Direct SSTP: send with ThreadID to get ThreadMessage
DescriptionSEND SSTP/1.4
//...
ThreadID: 1400
//...

Like this to facilitate Direct SSTP communication for console programs
TagsNo tags attached.
Attach Tags

Activities

ponapalt

2021-12-13 11:19

administrator   ~0000981

WM_COPYDATA needs SendMessage, but we cannot send to thread message queue, because there is not "SendThreadMessage" API.
https://devblogs.microsoft.com/oldnewthing/20081223-00/?p=19743
I think we should find another approach, for example, specify HWND header in socket SSTP.

guest

2021-12-13 20:46

reporter   ~0000982

Although I don't understand why we don't use PostThreadMessage, just as I don't understand why we don't use ghost names in socket SSTP but HWND...
But it's a good idea to use HWND in socket SSTP if there is a reason!

ponapalt

2021-12-15 09:35

administrator   ~0000983

Adding target ghost name is good idea, but not enough because ghost name is not unique ID. I'll try to implement both idea.
The reason why we cannot use PostThreadMessage is : it's "by design" of Win32 API. PostMessage and similar APIs cannot handle WM_COPYDATA.

guest

2022-01-03 11:05

reporter   ~0001028

Thanks, I understand.
I'm looking forward to the expansion of this!

ponapalt

2022-01-10 15:18

administrator   ~0001047

2.5.57

EXECUTE GetFMO
http://ssp.shillest.net/ukadoc/manual/spec_sstp.html#method_execute

ReceiveGhostHWnd / ReceiveGhostName header
http://ssp.shillest.net/ukadoc/manual/spec_sstp.html#req_res

Issue History

Date Modified Username Field Change
2021-12-06 13:51 guest New Issue
2021-12-13 11:19 ponapalt Assigned To => ponapalt
2021-12-13 11:19 ponapalt Status new => feedback
2021-12-13 11:19 ponapalt Note Added: 0000981
2021-12-13 20:46 guest Note Added: 0000982
2021-12-13 20:46 guest Status feedback => assigned
2021-12-15 09:35 ponapalt Status assigned => feedback
2021-12-15 09:35 ponapalt Note Added: 0000983
2022-01-03 11:05 guest Note Added: 0001028
2022-01-03 11:05 guest Status feedback => assigned
2022-01-10 15:18 ponapalt Status assigned => closed
2022-01-10 15:18 ponapalt Resolution open => fixed
2022-01-10 15:18 ponapalt Fixed in Version => 2.5 (リリース)
2022-01-10 15:18 ponapalt Note Added: 0001047