{"author_name":"potisan","provider_name":"Hatena Blog","version":"1.0","url":"https://potisan-programming-memo.hatenablog.jp/entry/2021/09/18/220317","height":"190","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2021%2F09%2F18%2F220317\" title=\"C++20&amp;Win API GetTokenInformation\u95a2\u6570\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 - 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>","author_url":"https://blog.hatena.ne.jp/potisan/","published":"2021-09-18 22:03:17","title":"C++20&Win API GetTokenInformation\u95a2\u6570\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9","blog_url":"https://potisan-programming-memo.hatenablog.jp/","categories":["C++","Windows"],"description":"\u5171\u7528\u306e\u30b3\u30fc\u30c9 #pragma once #include <string> #include <format> #include <vector> std::vector<BYTE> GetTokenInformationInByteArray( HANDLE TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass) { DWORD required; if (!::GetTokenInformation(TokenHandle, TOKEN_INFORMATION_CLASS::TokenUser, nullptr, 0, &re\u2026","width":"100%","type":"rich","provider_url":"https://hatena.blog"}