{"id":47,"date":"2008-09-09T15:49:09","date_gmt":"2008-09-09T15:49:09","guid":{"rendered":"http:\/\/kumouse.aafox.com\/?p=47"},"modified":"2008-09-09T15:49:09","modified_gmt":"2008-09-09T15:49:09","slug":"%e6%94%b9%e5%8f%98%e8%ae%b0%e4%ba%8b%e6%9c%ac%e6%a0%87%e9%a2%98%e6%a0%8f%e6%96%87%e5%ad%97%e6%b1%87%e7%bc%96","status":"publish","type":"post","link":"https:\/\/www.kumouse.com\/?p=47","title":{"rendered":"\u6539\u53d8\u8bb0\u4e8b\u672c\u6807\u9898\u680f\u6587\u5b57(\u6c47\u7f16)"},"content":{"rendered":"<p>\u5176\u5b9e\u5c31\u662f\u7528\u4e86\u4e00\u4e0bsendmessage\u4f46\u662f\u8981\u6ce8\u610fpostmessage\u65e0\u6cd5\u5904\u7406\u53c2\u6570\u4e2d\u542b\u6709\u6307\u9488\u7684\u6d88\u606f,\u6bd4\u5982WM_SETTEXT,WM_COPYDATA\u7b49.<br \/>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<blockquote><p>&nbsp;&nbsp;&nbsp;&nbsp;.386<br \/>&nbsp;&nbsp;&nbsp;&nbsp;.model flat,stdcall<br \/>&nbsp;&nbsp;&nbsp;&nbsp;option casemap:none<br \/>;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br \/>; Include \u6587\u4ef6\u5b9a\u4e49<br \/>;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<\/p>\n<p>include&nbsp;&nbsp;&nbsp;&nbsp;windows.inc<br \/>include&nbsp;&nbsp;&nbsp;&nbsp;user32.inc<br \/>includelib&nbsp;&nbsp;                user32.lib<br \/>include&nbsp;&nbsp;&nbsp;&nbsp;kernel32.inc<br \/>includelib&nbsp;&nbsp;                kernel32.lib<br \/>;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br \/>; \u6570\u636e\u6bb5<br \/>;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;.data<br \/>hWnd&nbsp;&nbsp;&nbsp;&nbsp;dd&nbsp;&nbsp;?<br \/>szBuffer&nbsp;&nbsp;                db&nbsp;&nbsp;256 dup (?)<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;.const<br \/>szCaption&nbsp;&nbsp;                db&nbsp;&nbsp;&#39;SendMessage&#39;,0<br \/>szDestClass&nbsp;&nbsp;db&nbsp;&nbsp;&#39;Notepad&#39;,0&nbsp;&nbsp;          ;\u76ee\u6807\u7a97\u53e3\u7684\u7a97\u53e3\u7c7b<br \/>szText&nbsp;&nbsp;&nbsp;&nbsp;db&nbsp;&nbsp;&#39;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5&#39;,0<br \/>szNotFound&nbsp;&nbsp;db&nbsp;&nbsp;&#39;\u76ee\u6807\u65e0\u6cd5\u627e\u5230!&#39;,0<\/p>\n<p>;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br \/>; \u4ee3\u7801\u6bb5<br \/>;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;.code<br \/>start:<br \/>&nbsp;&nbsp;&nbsp;&nbsp;invoke&nbsp;&nbsp;FindWindow,addr szDestClass,NULL<br \/>&nbsp;&nbsp;&nbsp;&nbsp;.if&nbsp;&nbsp;eax<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov&nbsp;&nbsp;hWnd,eax&nbsp;&nbsp;;\u627e\u5230\u76ee\u6807\u7a97\u53e3\u5219\u53d1\u9001\u6d88\u606f<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;invoke&nbsp;&nbsp;SendMessage,hWnd,WM_SETTEXT,0,addr szText<br \/>&nbsp;&nbsp;&nbsp;&nbsp;.else<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;invoke&nbsp;&nbsp;MessageBox,NULL,offset szNotFound,offset szCaption,MB_OK<br \/>&nbsp;&nbsp;&nbsp;&nbsp;.endif<br \/>&nbsp;&nbsp;&nbsp;&nbsp;invoke&nbsp;&nbsp;ExitProcess,NULL<br \/>&nbsp;&nbsp;&nbsp;&nbsp;end&nbsp;&nbsp;start<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5176\u5b9e\u5c31\u662f\u7528\u4e86\u4e00\u4e0bsendmessage\u4f46\u662f\u8981\u6ce8\u610fpostmessage\u65e0\u6cd5\u5904\u7406\u53c2\u6570\u4e2d\u542b\u6709\u6307\u9488\u7684\u6d88\u606f,\u6bd4\u5982WM_ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-12"],"_links":{"self":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=47"}],"version-history":[{"count":0,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}