{"published":"2021-09-18 22:03:17","height":"190","width":"100%","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","author_url":"https://blog.hatena.ne.jp/potisan/","categories":["C++","Windows"],"image_url":null,"title":"C++20&Win API GetTokenInformation\u95a2\u6570\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9","type":"rich","version":"1.0","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>","blog_url":"https://potisan-programming-memo.hatenablog.jp/","author_name":"potisan","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","url":"https://potisan-programming-memo.hatenablog.jp/entry/2021/09/18/220317","provider_name":"Hatena Blog","provider_url":"https://hatena.blog"}