{"id":102,"date":"2014-08-14T15:51:03","date_gmt":"2014-08-14T15:51:03","guid":{"rendered":""},"modified":"2014-08-14T15:51:03","modified_gmt":"2014-08-14T15:51:03","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=102","title":{"rendered":"[\u8f6c]\u94a9\u5b50\u7f16\u7a0b"},"content":{"rendered":"<div class=\"bct fc05 fc11 nbw-blog ztag\">\n<div>\n<div id=\"sina_keyword_ad_area2\" class=\"articalContent \">\n<div>\n\t\t\t\t1.Hook\u7b80\u4ecb\uff1a\u4f5c\u7528\u662f\u62e6\u622a\u67d0\u4e9b\u6d88\u606f\uff0c\u5173\u952e\u51fd\u6570\u662fSetWindowsHookEX()<br \/>\nHHOOK SetWindowsHookEx(int idHook,<br \/>\n&nbsp;&nbsp;&nbsp; HOOKPROC lpfn,<br \/>\n&nbsp;&nbsp;&nbsp; HINSTANCE hMod,<br \/>\n&nbsp;&nbsp;&nbsp; DWORD dwThreadId<br \/>\n);<br \/>\n(1)\u7528\u6765\u6307\u5b9a\u94a9\u5b50\u8fc7\u7a0b\u7684\u7c7b\u578b\uff1b<br \/>\n(2)\u6307\u5411\u94a9\u5b50\u8fc7\u7a0b\u7684\u6307\u9488\uff1b<br \/>\n(3)\u5f53\uff084\uff09\u4e3a0\uff0c\u52a8\u6001\u94fe\u63a5\u5e93\u7684\u53e5\u67c4\uff0c\u5e38\u4e3aNULL\uff1b<br \/>\n(4)\u548c\u94a9\u5b50\u8fc7\u7a0b\u76f8\u5173\u7684\u7ebf\u7a0b\u6807\u5fd7\u7b26\uff0c\u4e3a0\u548c\u6240\u6709\u7ebf\u7a0b\u8fdb\u7a0b\u6709\u5173\u3002\u5f97\u5230\u5f53\u524d\u8fdb\u7a0b\u6709\u5173\u7684ID\uff1a\n\t\t\t<\/div>\n<div>\n\t\t\t\tGetCurrentThreadId();<br \/>\n2.\u793a\u4f8b\u7a0b\u5e8f\uff1a<br \/>\n&nbsp; (1)\u65b0\u5efa\u4e00\u57fa\u4e8e\u5bf9\u8bdd\u6846\u5de5\u7a0b\uff0cInnerHook,\u6b64\u8fc7\u7a0b\u7684\u94a9\u5b50\u662f\u53ea\u62e6\u622a\u672c\u8fdb\u7a0b\u7684\u3002<br \/>\n&nbsp; (2)\u5728OnInitDialog()\u4e2d\u6dfb\u52a0\u4ee3\u7801\uff1a<br \/>\n&nbsp;&nbsp; g_hWnd=m_hWnd;<br \/>\ng_hMouse=SetWindowsHookEx(WH_MOUSE,MouseProc,NULL,GetCurrentThreadId());\u8bbe\u7f6e\u4e86\u9f20\u6807\u94a9\u5b50<br \/>\ng_hKeyboard=SetWindowsHookEx(WH_KEYBOARD,KeyboardProc,NULL,GetCurrentThreadId());\u8bbe\u7f6e\u4e86\u952e\u76d8\n\t\t\t<\/div>\n<div>\n\t\t\t\t\u94a9\u5b50<br \/>\n\u4ee5\u4e0a\u5b9a\u4e49\u7684\u90fd\u4e3a\u5168\u5c40\u51fd\u6570\u3002<br \/>\n(3).\u5b8c\u6210\u94a9\u5b50\u51fd\u6570\u7684\u7f16\u5199\uff1a<br \/>\nHHOOK g_hKeyboard=NULL;<br \/>\nHHOOK g_hMouse;<br \/>\nHWND g_hWnd=NULL;<br \/>\nLRESULT CALLBACK MouseProc(<br \/>\n&nbsp;&nbsp; int nCode,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ hook code<br \/>\n&nbsp;&nbsp; WPARAM wParam,&nbsp; \/\/ message identifier<br \/>\n&nbsp;&nbsp; LPARAM lParam&nbsp;&nbsp; \/\/ mouse coordinates<br \/>\n)<br \/>\n{<br \/>\n&nbsp; return 1;<br \/>\n}<br \/>\nLRESULT CALLBACK KeyboardProc(<br \/>\n&nbsp;&nbsp; int code,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ hook code<br \/>\n&nbsp;&nbsp; WPARAM wParam,&nbsp; \/\/ virtual-key code<br \/>\n&nbsp;&nbsp; LPARAM lParam&nbsp;&nbsp; \/\/ keystroke-message information<br \/>\n)<br \/>\n{<br \/>\n&nbsp; \/\/if(VK_SPACE==wParam || VK_RETURN==wParam)\u5982\u679c\u662f\u7a7a\u683c\u952e<br \/>\n&nbsp; \/*if(VK_F4==wParam &amp;&amp; (1==(lParam&gt;&gt;29 &amp; 1)))\u62e6\u622aALT+F4\u6309\u952e\uff01<br \/>\n&nbsp;&nbsp; return 1;<br \/>\n&nbsp; else<br \/>\n&nbsp;&nbsp; return CallNextHookEx(g_hKeyboard,code,wParam,lParam);*\/<br \/>\n&nbsp; if(VK_F2==wParam)\u6309F2\u65f6\u7a0b\u5e8f\u53ef\u4ee5\u9000\u51fa\uff0c\u8fd9\u662f\u7559\u7684\u540e\u95e8\u3002\u5426\u5219\u7a0b\u5e8f\u65e0\u6cd5\u5173\u95ed\uff0c\u53ea\u80fd\u7528\u4efb\u52a1\u7ba1\u7406\u5668\u6765\u5173\n\t\t\t<\/div>\n<div>\n\t\t\t\t\u95ed\u5b83\u4e86\u3002<br \/>\n&nbsp; {<br \/>\n&nbsp;&nbsp; ::SendMessage(g_hWnd,WM_CLOSE,0,0);<br \/>\n&nbsp;&nbsp; UnhookWindowsHookEx(g_hKeyboard);\u5f53\u7a0b\u5e8f\u9000\u51fa\u65f6\u6700\u597d\u5c06\u94a9\u5b50\u79fb\u9664\u3002<br \/>\n&nbsp;&nbsp; UnhookWindowsHookEx(g_hMouse);<br \/>\n&nbsp; }<br \/>\n&nbsp; return 1;<br \/>\n}<br \/>\n3.\u7f16\u5199\u4e00\u4e2a\u5c4f\u5c4f\u853d\u6240\u6709\u8fdb\u7a0b\u548c\u6240\u6709\u7ebf\u7a0b\u7684\u94a9\u5b50\u7a0b\u5e8f\u3002\u6b64\u65f6\u8fd9\u4e2a\u94a9\u5b50\u5fc5\u987b\u5b89\u88c5\u5728DLL\u4e2d\uff0c\u7136\u540e\u88ab\u67d0\u4e2a\u7a0b\u5e8f\u8c03\n\t\t\t<\/div>\n<div>\n\t\t\t\t\u7528\u624d\u884c\u3002<br \/>\n(1)\u65b0\u5efa\u4e00\u4e2aDLL\u5de5\u7a0b\u540d\u4e3aHook.<br \/>\n(2)\u589e\u52a0Hook.cpp.<br \/>\n(3)\u52a8\u6001\u5e93\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<br \/>\n#include &lt;windows.h&gt;\u5305\u542b\u5934\u6587\u4ef6<br \/>\nHHOOK g_hMouse=NULL;<br \/>\nHHOOK g_hKeyboard=NULL;<br \/>\n#pragma data_seg(&#8220;MySec&#8221;)\u65b0\u5efa\u4e86\u4e00\u4e2a\u8282\uff0c\u7528\u4e8e\u5c06\u4e0b\u9762\u7684\u8fd9\u4e2a\u53d8\u91cf\u8bbe\u4e3a\u5168\u5c40\u5171\u4eab\u3002<br \/>\nHWND g_hWnd=NULL;\u8fd9\u4e2a\u53d8\u91cf\u662f\u5168\u5c40\u5171\u4eab\u7684\u3002<br \/>\n#pragma data_seg()<br \/>\n\/\/#pragma comment(linker,&#8221;\/section:MySec,RWS&#8221;)<br \/>\n\/*HINSTANCE g_hInst;<br \/>\nBOOL WINAPI DllMain(<br \/>\n&nbsp;&nbsp; HINSTANCE hinstDLL,&nbsp; \/\/ handle to the DLL module<br \/>\n&nbsp;&nbsp; DWORD fdwReason,&nbsp;&nbsp;&nbsp;&nbsp; \/\/ reason for calling function<br \/>\n&nbsp;&nbsp; LPVOID lpvReserved&nbsp;&nbsp; \/\/ reserved<br \/>\n)<br \/>\n{<br \/>\n&nbsp; g_hInst=hinstDLL;<br \/>\n}*\/<br \/>\nLRESULT CALLBACK MouseProc(<br \/>\n&nbsp;&nbsp; int nCode,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ hook code<br \/>\n&nbsp;&nbsp; WPARAM wParam,&nbsp; \/\/ message identifier<br \/>\n&nbsp;&nbsp; LPARAM lParam&nbsp;&nbsp; \/\/ mouse coordinates<br \/>\n)<br \/>\n{<br \/>\n&nbsp; return 1;\u62e6\u622a\u4e86\u9f20\u6807\u6d88\u606f\u3002<br \/>\n}<br \/>\nLRESULT CALLBACK KeyboardProc(<br \/>\n&nbsp;&nbsp; int code,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ hook code<br \/>\n&nbsp;&nbsp; WPARAM wParam,&nbsp; \/\/ virtual-key code<br \/>\n&nbsp;&nbsp; LPARAM lParam&nbsp;&nbsp; \/\/ keystroke-message information<br \/>\n)<br \/>\n{<br \/>\n&nbsp; if(VK_F2==wParam)\u5982\u679c\u662fF2\u952e\uff0c\u5219\u9000\u51fa\u3002<br \/>\n&nbsp; {<br \/>\n&nbsp;&nbsp; SendMessage(g_hWnd,WM_CLOSE,0,0);<br \/>\n&nbsp;&nbsp; UnhookWindowsHookEx(g_hMouse);\u5f53\u9000\u51fa\u65f6\u5c06\u94a9\u5b50\u5378\u6389\u3002<br \/>\n&nbsp;&nbsp; UnhookWindowsHookEx(g_hKeyboard);<br \/>\n&nbsp; }<br \/>\n&nbsp; return 1;<br \/>\n}<br \/>\nvoid SetHook(HWND hwnd)\u6b64\u51fd\u6570\u8bbe\u7f6e\u4e86\u94a9\u5b50\u3002<br \/>\n{<br \/>\n&nbsp; g_hWnd=hwnd;\u6ce8\u610f\u8fd9\u79cd\u4f20\u9012\u8c03\u7528\u5b83\u7684\u8fdb\u7a0b\u7684\u53e5\u67c4\u7684\u65b9\u6cd5\uff0c\u6bd4\u8f83\u5de7\u5999\uff01<br \/>\n&nbsp; g_hMouse=SetWindowsHookEx(WH_MOUSE,MouseProc,GetModuleHandle(&#8220;Hook&#8221;),0);<br \/>\n&nbsp; g_hKeyboard=SetWindowsHookEx(WH_KEYBOARD,KeyboardProc,GetModuleHandle(&#8220;Hook&#8221;),0);<br \/>\n}<br \/>\nHook.DEF\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<br \/>\nLIBRARY Hook<br \/>\nEXPORTS<br \/>\nSetHook&nbsp; @2<br \/>\nSEGMENTS<br \/>\nMySec READ WRITE SHARED&nbsp; \u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u8282\u7684\u5c5e\u6027\u3002<br \/>\n(4)\u65b0\u5efa\u4e00\u4e2a\u5de5\u7a0b\u8c03\u7528\u6b64\u94a9\u5b50\u51fd\u6570\u3002\u5de5\u7a0b\u540d\u4e3aHookTest,\u57fa\u4e8e\u5bf9\u8bdd\u6846\u7684\u3002\u5728OnInitDialog()\u4e2d\u8c03\u7528SetHook\n\t\t\t<\/div>\n<div>\n\t\t\t\t()\uff0c\u8981\u4e8b\u5148\u58f0\u660e_declspec(dllimport) void SetHook(HWND hwnd);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u7136\u540e\u5728Project-&gt;Setting-&gt;Link-&gt;\u52a0\u5165..\\Hook\\Debug\\Hook.lib\uff0c\u5e76\u5c06Hook.Dll\u62f7\u8d1d\u5230\u5f53\u524d\u76ee\u5f55\u3002<br \/>\nint cxScreen,cyScreen;<br \/>\ncxScreen=GetSystemMetrics(SM_CXSCREEN);<br \/>\ncyScreen=GetSystemMetrics(SM_CYSCREEN);<br \/>\nSetWindowPos(&amp;wndTopMost,0,0,cxScreen,cyScreen,SWP_SHOWWINDOW);\u5c06\u7a97\u53e3\u4fdd\u6301\u5728\u6700\u524d\u9762\u3002<br \/>\nSetHook(m_hWnd);\n\t\t\t<\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"bct fc05 fc11 nbw-blog ztag\">\n<div>\n<div id=\"sina_keyword_ad_area2\" class=\"articalContent \">\n<div>\n\t\t\t\t1.Hook\u7b80\u4ecb\uff1a\u4f5c\u7528\u662f\u62e6\u622a\u67d0\u4e9b\u6d88\u606f\uff0c\u5173\u952e\u51fd\u6570\u662fSetWindowsHookEX()<br \/>\nHHOOK SetWindowsHookEx(int idHook,<br \/>\n&nbsp;&nbsp;&nbsp; HOOKPROC lpfn,<br \/>\n&nbsp;&nbsp;&nbsp; HINSTANCE hMod,<br \/>\n&nbsp;&nbsp;&nbsp; DWORD dwThreadId<br \/>\n);<br \/>\n(1)\u7528\u6765\u6307\u5b9a\u94a9\u5b50&#8230;<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[324],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\u8f6c]\u94a9\u5b50\u7f16\u7a0b - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=102\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u8f6c]\u94a9\u5b50\u7f16\u7a0b - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"1.Hook\u7b80\u4ecb\uff1a\u4f5c\u7528\u662f\u62e6\u622a\u67d0\u4e9b\u6d88\u606f\uff0c\u5173\u952e\u51fd\u6570\u662fSetWindowsHookEX() HHOOK SetWindowsHookEx(int idHook, &nbsp;&nbsp;&nbsp; HOOKPROC lpfn, &nbsp;&nbsp;&nbsp; HINSTANCE hMod, &nbsp;&nbsp;&nbsp; DWORD dwThreadId ); (1)\u7528\u6765\u6307\u5b9a\u94a9\u5b50...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=102\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-08-14T15:51:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=102#webpage\",\"url\":\"http:\/\/weizn.net\/?p=102\",\"name\":\"[\\u8f6c]\\u94a9\\u5b50\\u7f16\\u7a0b - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2014-08-14T15:51:03+00:00\",\"dateModified\":\"2014-08-14T15:51:03+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=102#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=102\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=102#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\\u8f6c]\\u94a9\\u5b50\\u7f16\\u7a0b\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=102#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=102#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"[\\u8f6c]\\u94a9\\u5b50\\u7f16\\u7a0b\",\"datePublished\":\"2014-08-14T15:51:03+00:00\",\"dateModified\":\"2014-08-14T15:51:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=102#webpage\"},\"wordCount\":432,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"C\/C++\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=102#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[\u8f6c]\u94a9\u5b50\u7f16\u7a0b - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=102","og_locale":"zh_CN","og_type":"article","og_title":"[\u8f6c]\u94a9\u5b50\u7f16\u7a0b - Wayne&#039;s Blog","og_description":"1.Hook\u7b80\u4ecb\uff1a\u4f5c\u7528\u662f\u62e6\u622a\u67d0\u4e9b\u6d88\u606f\uff0c\u5173\u952e\u51fd\u6570\u662fSetWindowsHookEX() HHOOK SetWindowsHookEx(int idHook, &nbsp;&nbsp;&nbsp; HOOKPROC lpfn, &nbsp;&nbsp;&nbsp; HINSTANCE hMod, &nbsp;&nbsp;&nbsp; DWORD dwThreadId ); (1)\u7528\u6765\u6307\u5b9a\u94a9\u5b50...","og_url":"http:\/\/weizn.net\/?p=102","og_site_name":"Wayne&#039;s Blog","article_published_time":"2014-08-14T15:51:03+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=102#webpage","url":"http:\/\/weizn.net\/?p=102","name":"[\u8f6c]\u94a9\u5b50\u7f16\u7a0b - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2014-08-14T15:51:03+00:00","dateModified":"2014-08-14T15:51:03+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=102#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=102"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=102#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"[\u8f6c]\u94a9\u5b50\u7f16\u7a0b"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=102#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=102#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"[\u8f6c]\u94a9\u5b50\u7f16\u7a0b","datePublished":"2014-08-14T15:51:03+00:00","dateModified":"2014-08-14T15:51:03+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=102#webpage"},"wordCount":432,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["C\/C++"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=102#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=102"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/102\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}