{"blog_url":"https://potisan-programming-memo.hatenablog.jp/","url":"https://potisan-programming-memo.hatenablog.jp/entry/2021/09/04/215643","author_url":"https://blog.hatena.ne.jp/potisan/","type":"rich","provider_name":"Hatena Blog","author_name":"potisan","published":"2021-09-04 21:56:43","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2021%2F09%2F04%2F215643\" title=\"C++20&amp;Win API \u30d7\u30e9\u30a4\u30de\u30ea\u30e2\u30cb\u30bf\u30fc\u306e\u30cf\u30f3\u30c9\u30eb\u53d6\u5f97\uff06\u7269\u7406\u30e2\u30cb\u30bf\u30fc\u60c5\u5831\u306e\u5217\u6319 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","title":"C++20&Win API \u30d7\u30e9\u30a4\u30de\u30ea\u30e2\u30cb\u30bf\u30fc\u306e\u30cf\u30f3\u30c9\u30eb\u53d6\u5f97\uff06\u7269\u7406\u30e2\u30cb\u30bf\u30fc\u60c5\u5831\u306e\u5217\u6319","image_url":null,"provider_url":"https://hatena.blog","height":"190","categories":["C++","Windows"],"blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","description":"\u30d7\u30e9\u30a4\u30de\u30ea\u30e2\u30cb\u30bf\u30fc\u306e\u30cf\u30f3\u30c9\u30eb\u3092\u53d6\u5f97\u3057\u3066\u3001\u305d\u306e\u7269\u7406\u30e2\u30cb\u30bf\u30fc\u60c5\u5831\u3092\u5217\u6319\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002 #include <format> #include <iostream> #include <string_view> #include <span> #include <vector> #define STRICT #include <Windows.h> #include <physicalmonitorenumerationapi.h> #pragma comment(lib, \"dxva2.lib\") inline HMONITOR GetPrimaryMonitorHandle() noex\u2026"}