{"id":8682,"date":"2023-01-31T11:55:03","date_gmt":"2023-01-31T03:55:03","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=8682"},"modified":"2024-05-05T14:18:24","modified_gmt":"2024-05-05T06:18:24","slug":"%e6%a1%8c%e9%9d%a2%e7%a8%8b%e5%ba%8f%e6%96%87%e5%ad%97%e7%bb%98%e5%88%b6-windows-api-%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=8682","title":{"rendered":"\u684c\u9762\u7a0b\u5e8f\u6587\u5b57\u7ed8\u5236 &#8211; Windows API"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.iyatt.com\/?p=8682\/#%E7%8E%AF%E5%A2%83\" >\u73af\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.iyatt.com\/?p=8682\/#%E6%96%87%E5%AD%97%E7%BB%98%E5%88%B6%EF%BC%88%E9%A2%9C%E8%89%B2%E3%80%81%E8%83%8C%E6%99%AF%E9%80%8F%E6%98%8E%E3%80%81%E8%83%8C%E6%99%AF%E8%89%B2%EF%BC%89\" >\u6587\u5b57\u7ed8\u5236\uff08\u989c\u8272\u3001\u80cc\u666f\u900f\u660e\u3001\u80cc\u666f\u8272\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.iyatt.com\/?p=8682\/#%E5%AD%97%E4%BD%93\" >\u5b57\u4f53<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E7%8E%AF%E5%A2%83\"><\/span>\u73af\u5883<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Windows 11 \u4e13\u4e1a\u5de5\u4f5c\u7ad9\u7248 22H2<br \/>\nVisual Studio 2022 \u4e13\u4e1a\u7248<\/p>\n<p>\u4f7f\u7528 Unicode \u5b57\u7b26\u96c6\uff0cC17 \u6807\u51c6\u7f16\u8bd1\uff0c64 \u4f4d\u7f16\u8bd1<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E6%96%87%E5%AD%97%E7%BB%98%E5%88%B6%EF%BC%88%E9%A2%9C%E8%89%B2%E3%80%81%E8%83%8C%E6%99%AF%E9%80%8F%E6%98%8E%E3%80%81%E8%83%8C%E6%99%AF%E8%89%B2%EF%BC%89\"><\/span>\u6587\u5b57\u7ed8\u5236\uff08\u989c\u8272\u3001\u80cc\u666f\u900f\u660e\u3001\u80cc\u666f\u8272\uff09<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre><code class=\"language-c\">#include &lt;Windows.h&gt;\n\nLRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)\n{\n    switch (msg)\n    {\n        case WM_PAINT:\n        {\n            PAINTSTRUCT ps = {0};\n            HDC hdc = BeginPaint(hWnd, &amp;ps);\n            COLORREF oldColor = SetTextColor(hdc, RGB(255, 0, 0)); \/\/ \u6587\u5b57\u989c\u8272\u8bbe\u4e3a\u7ea2\u8272\uff0c\u5e76\u4fdd\u5b58\u539f\u6765\u7684\u989c\u8272\n            \/\/ \u6587\u5b57\u7ed8\u5236\u65b9\u5f0f 1\n            \/\/ DC \u53e5\u67c4\n            \/\/ \u6587\u5b57\u884c\u5de6\u4e0a\u89d2\u5750\u6807 x\n            \/\/ \u6587\u5b57\u884c\u5de6\u4e0a\u89d2\u5750\u6807 y\n            \/\/ \u663e\u793a\u6587\u5b57\u5185\u5bb9\n            \/\/ \u6587\u5b57\u5185\u5bb9\u7684\u957f\u5ea6\n            TextOut(hdc, 200, 50, L&quot;\u4f60\u597d\u554a\uff01&quot;, wcslen(L&quot;\u4f60\u597d\u554a\uff01&quot;));\n            RECT rect1 = {10, 10, 50, 200}; \/\/ \u77e9\u5f62\u7ed3\u6784\uff0c\u5de6\u4e0a\u89d2\u5750\u6807\u548c\u53f3\u4e0b\u89d2\u5750\u6807\n            SetBkMode(hdc, TRANSPARENT); \/\/ \u8bbe\u7f6e\u6587\u5b57\u663e\u793a\u80cc\u666f\u900f\u660e\uff0c\u900f\u660e\u72b6\u6001\u4e0b\uff0c\u8bbe\u7f6e\u6587\u5b57\u80cc\u666f\u8272\u65e0\u6548\uff0c\u4e0d\u900f\u660e\u662f\u9ed8\u8ba4\u72b6\u6001\n            \/\/ \u6587\u5b57\u7ed8\u5236\u65b9\u5f0f 2\n            \/\/ DC \u53e5\u67c4\n            \/\/ \u663e\u793a\u6587\u5b57\u5185\u5bb9\n            \/\/ \u6587\u5b57\u5185\u5bb9\u957f\u5ea6\n            \/\/ \u7ed8\u5236\u6587\u5b57\u7684\u77e9\u5f62\u533a\u57df\n            \/\/ \u6587\u5b57\u663e\u793a\u683c\u5f0f\uff0c\u6bd4\u5982\u8fd9\u91cc DT_LEFT \u9760\u5de6\uff0cDT_WORDBREAK \u5728\u884c\u663e\u793a\u6ee1\u65f6\u652f\u6301\u6362\u884c\u7ee7\u7eed\u663e\u793a\uff0cDT_NOCLIP \u652f\u6301\u5728\u884c\u663e\u793a\u5355\u8bcd\u8d85\u51fa\u77e9\u5f62\u533a\u57df\u65f6\u4f9d\u7136\u5b8c\u6574\u663e\u793a\uff0c\u4e0d\u526a\u88c1\n            DrawText(hdc, L&quot;DrawText ABC \u6587\u5b57\u8f93\u51fa&quot;, wcslen(L&quot;DrawText ABC \u6587\u5b57\u8f93\u51fa&quot;), &amp;rect1, DT_LEFT | DT_WORDBREAK | DT_NOCLIP);\n            RECT rect2 = {100, 100, 140, 200};\n            SetTextColor(hdc, oldColor); \/\/ \u6539\u56de\u9ed8\u8ba4\u7684\u5b57\u4f53\u989c\u8272\n            SetBkMode(hdc, OPAQUE); \/\/ \u8bbe\u7f6e\u6587\u5b57\u663e\u793a\u80cc\u666f\u4e0d\u900f\u660e\n            SetBkColor(hdc, RGB(0, 0, 255)); \/\/ \u80cc\u666f\u8272\u8bbe\u4e3a\u84dd\u8272\n            DrawText(hdc, L&quot;DrawText ABC \u6587\u5b57\u8f93\u51fa&quot;, wcslen(L&quot;DrawText ABC \u6587\u5b57\u8f93\u51fa&quot;), &amp;rect2, DT_LEFT | DT_WORDBREAK);\n            EndPaint(hWnd, &amp;ps);\n            break;\n        }\n        case WM_CLOSE:\n        {\n            DestroyWindow(hWnd);\n            break;\n        }\n        case WM_DESTROY:\n        {\n            PostQuitMessage(0);\n            break;\n        }\n        default:\n        {\n            return DefWindowProc(hWnd, msg, wParam, lParam);\n        }\n    }\n    return 0;\n}\n\nint WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPreInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)\n{\n    PCWSTR szClassName = L&quot;Desktop&quot;;\n    WNDCLASSEX wc = {0};\n    wc.cbSize = sizeof(WNDCLASSEX);\n    wc.lpszClassName = szClassName;\n    wc.lpfnWndProc = WndProc;\n    if (!RegisterClassEx(&amp;wc))\n    {\n        MessageBox(NULL, L&quot;\u6ce8\u518c\u7a97\u53e3\u5931\u8d25\uff01&quot;, L&quot;\u9519\u8bef&quot;, MB_OK);\n        return 1;\n    }\n\n    HWND hWnd = CreateWindowEx(0, szClassName, L&quot;\u7b80\u5355\u7a0b\u5e8f&quot;, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 300, 300, NULL, NULL, hInstance, NULL);\n    if (!hWnd)\n    {\n        MessageBox(NULL, L&quot;\u521b\u5efa\u7a97\u53e3\u5931\u8d25\uff01&quot;, L&quot;\u9519\u8bef&quot;, MB_OK);\n        return 1;\n    }\n\n    ShowWindow(hWnd, nCmdShow);\n    UpdateWindow(hWnd);\n\n    MSG msg = {0};\n    while (GetMessage(&amp;msg, NULL, 0, 0))\n    {\n        DispatchMessage(&amp;msg);\n    }\n\n    return (int)msg.wParam;\n}<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2023\/01\/image-1675132763848.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 286px; --smush-placeholder-aspect-ratio: 286\/293;\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%AD%97%E4%BD%93\"><\/span>\u5b57\u4f53<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u7cfb\u7edf\u5b57\u4f53\u4fdd\u5b58\u5728 <strong>C:\\Windows\\Fonts<\/strong><br \/>\n\u4f7f\u7528\u5b57\u4f53\u65f6\u8981\u7528\u5230\u5b57\u4f53\u7684\u540d\u5b57\uff0c\u6ce8\u610f\u5b57\u4f53\u7684\u540d\u5b57\u5e76\u4e0d\u4e00\u5b9a\u662f\u6587\u4ef6\u540d<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2023\/01\/image-1675133015172.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 877px; --smush-placeholder-aspect-ratio: 877\/567;\" \/><\/p>\n<p>\u9700\u8981\u5c06\u5b57\u4f53\u6587\u4ef6\u76f4\u63a5\u6253\u5f00\uff0c\u9884\u89c8\u9875\u9762\u4e0a\u4f1a\u663e\u793a\u5b57\u4f53\u7684\u540d\u5b57<br \/>\n\u6bd4\u5982\u8fd9\u4e2a\u6587\u4ef6\u540d\u53eb\u65b0\u5b8b\u4f53\uff0c\u4f46\u662f\u5b57\u4f53\u7684\u540d\u5b57\u5c31\u53eb\u5b8b\u4f53<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2023\/01\/image-1675133099705.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 468px; --smush-placeholder-aspect-ratio: 468\/479;\" \/><\/p>\n<pre><code class=\"language-c\">#include &lt;Windows.h&gt;\n\nHFONT g_hFont = {0}; \/\/ \u5b57\u4f53\u53e5\u67c4\u3002\n\nLRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)\n{\n    switch (msg)\n    {\n        case WM_PAINT:\n        {\n            PAINTSTRUCT ps = {0};\n            HDC hdc = BeginPaint(hWnd, &amp;ps);\n            HGDIOBJ hOldFont =  SelectObject(hdc, g_hFont); \/\/ \u5207\u6362\u4f7f\u7528\u52a0\u8f7d\u7684\u5b57\u4f53\n            TextOut(hdc, 70, 120, L&quot;\u4f60\u597d\u554a ABC 123&quot;, wcslen( L&quot;\u4f60\u597d\u554a ABC 123&quot;));\n            SelectObject(hdc, hOldFont); \/\/ \u6362\u56de\u9ed8\u8ba4\u7684\u5b57\u4f53\n            EndPaint(hWnd, &amp;ps);\n            break;\n        }\n        case WM_CLOSE:\n        {\n            DestroyWindow(hWnd);\n            break;\n        }\n        case WM_DESTROY:\n        {\n            PostQuitMessage(0);\n            DeleteObject(g_hFont); \/\/ \u9500\u6bc1\u5b57\u4f53\u8d44\u6e90\n            break;\n        }\n        default:\n        {\n            return DefWindowProc(hWnd, msg, wParam, lParam);\n        }\n    }\n    return 0;\n}\n\nint WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPreInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)\n{\n    \/\/ \u521b\u5efa\u5b57\u4f53\u53e5\u67c4 - \u5b57\u4f53\u6bd4\u8f83\u5927\u653e\u5230\u7a97\u53e3\u8fc7\u7a0b\u7684\u8bdd\uff0c\u4e00\u76f4\u8c03\u7528\u6d88\u8017\u8d44\u6e90\u5927\uff0c\u653e\u5230\u5168\u5c40\u53d8\u91cf\u53ea\u7528\u52a0\u8f7d\u4e00\u6b21\n     g_hFont = CreateFont(0, \/\/ \u5b57\u4f53\u9ad8\u5ea6\uff0c\u6307\u5b9a 0 \u6309\u7167\u9ed8\u8ba4\u5904\u7406\n                          0, \/\/ \u5b57\u4f53\u5bbd\u5ea6\uff0c\u6307\u5b9a 0 \u6309\u7167\u9ed8\u8ba4\u5904\u7406\n                          300, \/\/ \u8f6c\u4e49\u5411\u91cf\u4e0e\u8bbe\u5907\u7684 x \u8f74\u4e4b\u95f4\u7684\u89d2\u5ea6\uff08\u5355\u4f4d\u4e3a 0.1\u00b0\uff0c\u4e0b\u540c\uff09\uff0c\u8f6c\u4e49\u5411\u91cf\u4e0e\u6587\u672c\u884c\u7684\u57fa\u7ebf\u5e76\u884c\n                          0, \/\/ \u6bcf\u4e2a\u5b57\u7b26\u7684\u57fa\u7ebf\u4e0e\u8bbe\u5907\u7684 x \u8f74\u4e4b\u95f4\u7684\u89d2\u5ea6\n                          FW_NORMAL, \/\/ \u5b57\u4f53\u7c97\u7ec6\uff0c\u53d6\u503c 0~100\uff0c400 \u6b63\u5e38\uff0c700 \u4e3a\u7c97\u4f53\uff0c\u8bbe 0 \u4e3a\u9ed8\u8ba4\uff08FW_NORMAL\uff09\u3002\u6709\u5b9a\u4e49\u5b8f\uff0c\u53ef\u4ee5\u53c2\u8003\u5f00\u53d1\u6587\u6863\n                          FALSE, \/\/ \u662f\u5426\u659c\u4f53\n                          TRUE, \/\/ \u662f\u5426\u6709\u4e0b\u5212\u7ebf\n                          FALSE, \/\/ \u662f\u5426\u6709\u5220\u9664\u7ebf\n                          GB2312_CHARSET, \/\/ \u5b57\u7b26\u96c6 - \u8fd9\u91cc\u4f7f\u7528 GB2312_CHARSET\uff08Windows \u4e2d\u6587\u4f7f\u7528\u7684\u5b57\u7b26\u96c6\uff09\n                          OUT_CHARACTER_PRECIS, \/\/ \u8f93\u51fa\u7cbe\u5ea6\uff0cOUT_CHARACTER_PRECIS \u672a\u4f7f\u7528\n                          CLIP_CHARACTER_PRECIS, \/\/ \u526a\u88c1\u7cbe\u5ea6\uff0c CLIP_CHARACTER_PRECIS \u672a\u4f7f\u7528\n                          CLEARTYPE_QUALITY, \/\/ \u8f93\u51fa\u8d28\u91cf\uff0c\u6bd4\u5982 CLEARTYPE_QUALITY \u5c3d\u53ef\u80fd\u4f7f\u7528 ClearType \u6297\u952f\u9f7f\u65b9\u6cd5\uff0cNONANTIALIASED_QUALITY \u4e0d\u6297\u952f\u9f7f\uff0c\u4e0d\u5e73\u6ed1\u5b57\u4f53\n                          DEFAULT_PITCH | FF_DONTCARE, \/\/ \u5b57\u4f53\u7684\u97f3\u8c03\u548c\u7cfb\u5217\uff0cDEFAULT_PITCH | FF_DONTCARE \u90fd\u9ed8\u8ba4\n                          L&quot;\u534e\u6587\u7425\u73c0&quot;); \/\/ \u5b57\u4f53\u540d\u5b57\n\n    PCWSTR szClassName = L&quot;Desktop&quot;;\n    WNDCLASSEX wc = {0};\n    wc.cbSize = sizeof(WNDCLASSEX);\n    wc.lpszClassName = szClassName;\n    wc.lpfnWndProc = WndProc;\n    if (!RegisterClassEx(&amp;wc))\n    {\n        MessageBox(NULL, L&quot;\u6ce8\u518c\u7a97\u53e3\u5931\u8d25\uff01&quot;, L&quot;\u9519\u8bef&quot;, MB_OK);\n        return 1;\n    }\n\n    HWND hWnd = CreateWindowEx(0, szClassName, L&quot;\u7b80\u5355\u7a0b\u5e8f&quot;, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 300, 300, NULL, NULL, hInstance, NULL);\n    if (!hWnd)\n    {\n        MessageBox(NULL, L&quot;\u521b\u5efa\u7a97\u53e3\u5931\u8d25\uff01&quot;, L&quot;\u9519\u8bef&quot;, MB_OK);\n        return 1;\n    }\n\n    ShowWindow(hWnd, nCmdShow);\n    UpdateWindow(hWnd);\n\n    MSG msg = {0};\n    while (GetMessage(&amp;msg, NULL, 0, 0))\n    {\n        DispatchMessage(&amp;msg);\n    }\n\n    return (int)msg.wParam;\n}<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2023\/01\/image-1675137280330.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 286px; --smush-placeholder-aspect-ratio: 286\/293;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73af\u5883 Windows 11 \u4e13\u4e1a\u5de5\u4f5c\u7ad9\u7248 22H2 Visual Studio 2022 \u4e13\u4e1a\u7248 \u4f7f\u7528 Uni [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1,593],"tags":[],"class_list":["post-8682","post","type-post","status-publish","format-standard","hentry","category-all","category-windows-api"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/8682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8682"}],"version-history":[{"count":0,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/8682\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}