 |
|
 |
at least one AV package says it is infected with Worm.Palevo-9668
|
|
|
|
 |
|
 |
Would be nice to know the "Hero" (instead of just "one AV package"). Indeed, as the source code is available, one can compile and compare resulting binaries with those posted here (MS Visual Studio 6 (as I remember, without SPs) has been initially used).
Regards,
D.I.
|
|
|
|
 |
|
 |
Sorry, was going through my inbox, had missed the notice. It was Clam-AV on Jotti's Malware scanner.. Worm.Palevo-9668
No big deal. I ran your util successfuly. Thanks.
|
|
|
|
 |
|
 |
An application is written as follows:
#define WMU_RTM_DATA WM_USER+100
#pragma pack(push, 1)
typedef struct
{
char *pData; // Data to be received
long nLen; // Data Length
}RECV_RTM;
#pragma pack(pop)
#endif // _RECEIVE
BEGIN_MESSAGE_MAP(CSampleDlg, CDialog)
//{{AFX_MSG_MAP(CSampleDlg)
ON_MESSAGE(WMU_RTM_DATA, OnRtmData)
END_MESSAGE_MAP()
void CSampleDlg::OnRtmData(WPARAM wParam, LPARAM lParam)
{
RECV_RTM *RR = (RECV_RTM *)lParam;
CHAR *pData = RR->pData;
}
The above OnRtmData is WMU_RTM_DATA message handler.
I would like to send the following data to CSampleDlg using your MessageSender.
016222541109211002002120021704717800003240000000101006 100000000002000000000000000218450 KOSPI200선1006 00000000742 02 0020100604150010197198200217047178 1 10152az123123W32OC02 0162225329 0000002476740 080 00000050000000000000
Is this possible?
If so, please let me know how.
Thank you.
HR
|
|
|
|
 |
|
 |
ehaerim wrote: Is this possible?
In short: present version of MessageSender does not support such functionality.
Note that unless you use WM_COPYDATA message, sending data between processes requires explicit memory sharing (for WM_COPYDATA Windows does all necessary things internally), and if your project assumes getting data messages from other processes, OnRtmData() should be reworked respectively. Here on CodeProject there are a number of examples how to do that.
For in-process communication current implementation of OnRtmData() is sufficient, but it requires that MessageSender sends messages such as custom WMU_RTM_DATA using target process context (which is already implemented for a limited list of messages only).
Necessary changes to MessageSender code will hopefully be done sometime later as well.
Regards,
D.I.
|
|
|
|
 |
|
 |
An application has the following handler for WM_COPYDATA:
BOOL CAutoOrderDlg::OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct)
{
if (pCopyDataStruct->dwData == 1)
{
printf("%s", (LPSTR)pCopyDataStruct->lpData);
}
...
}
Now, I would like to send WM_COPYDATA along with "Will this string be sent successfully?" so that the above application print it.
How can I do this?
haerim
|
|
|
|
 |
|
 |
Sorry, you cannot do it using a present version of MessageSender, as a proper processing of WM_COPYDATA message is left for future implementation. The reason is that WM_COPYDATA is intended, in general, for sending abstract (binary) data, and thus requires adding a binary editor for getting user input. An example of how this can be done is processing of WM_SENDTEXT message. Please, let me know, if this is really interesting, so that I will add it to my nearest plans.
As for sending just text messages using WM_COPYDATA, the way can be slightly shorter: create a dialog similar to CSetTextDlg, add an input field for a COPYDATASTRUCT::dwData member, and add lines to CSendMessageDialog class very similar to those used for WM_SENDTEXT processing. I do not plan to go this way, as it may confuse those users, who are looking for ways of sending binary data.
Sincerely,
D.I.
|
|
|
|
 |
|
 |
Yes it is very useful when debugging some applications as I have shown earlier.
Please support WM_COPYDATA with your MessageSender.
Thanks
HaeRim
|
|
|
|
 |
|
 |
Intermediate solution where data for WM_COPYDATA is taken from an external file will be posted here in a few days. Right now you can download it from www.divtools.com.
|
|
|
|
 |
|
 |
Hi Dmytro
www.dvitools.com is not accessible to download the newest MessageSender.
Please check and let me know when it is up again.
Thanks.
|
|
|
|
 |
|
 |
i have been searching for this program, you really are a genis ,
In code we trust
DgMv
|
|
|
|
 |
|
 |
Hi ,
Can you tell me how can I send special characters ?
like etc
John 3:16
For God so loved the world,
that he gave his only begotten Son ( Jesus Christ ) ,
that whosoever believeth in him should not perish, but have everlasting life.
|
|
|
|
 |
|
 |
A version with backslash expression expansion in the WM_SENDTEXT dialog will be posted here in a few days. You can download it now from www.divtools.com.
|
|
|
|
 |
|
|
 |
|
 |
Thanks a bunch, this program is very cool .
Chris Richardson
|
|
|
|
 |
|
 |
Excellent little tool
Regards,
Simon Hughes
Web: www.hicrest.net
|
|
|
|
 |
|
 |
it is perfect ,thanks
|
|
|
|
 |
|
 |
simple and very good, thanx
- krskumar
|
|
|
|
 |
|
 |
Ya you know that if you put the close function on the taskbar then all the windows that show on taskbar are open but the programs are still running... maybe a bug.;)
<marquee>Universal Project... Soon to be a .net</marquee>
|
|
|
|
 |
|
 |
Excellent works straight out of the box. Simple & direct tool without an nice to have embelishments and the target system was a very nice touch.
cheers get my 5
BinaryGB
int nThisVarableDoesntDoAnythingButIsOnlyHereToTellTheCodePoliceToBuggerOff = 0;
|
|
|
|
 |
|
 |
Very handy. I especially love the ability to target the window instead of searching for stupid handles. Now if this also had some sort of Spy++ functionality it would be, well, even more awesome.
|
|
|
|
 |
|
 |
Great idea and great article!!
I'm sure it will be veery useful to me.
Got my 5.
Cheers,
Caio Proiete
MCSD (Visual C++)
|
|
|
|
 |