Windowsサービスから現在のログオンユーザを取得するプログラム。 サービスから取得するには、通常のGetUserNameとかでは取得できないっぽい。。 色々と調べた結果、下記で取得できそう。 まぁ、自己責任でお願いします。 ソース #include "wtsapi32.h" #pragma comment(lib, "wtsapi32.lib") void CTest::GetActUserName() { PWTS_SESSION_INFOW pStSesInf = NULL; DWORD dwCount = 0; DWORD dwSesId = 0; DWORD dwSize = 0; LPTSTR lpNameTmp = NULL; // ログオンユーザのセッションリストを取得する if( ::WTSEnumerateSessionsW( NULL, 0, // 予約(必ず0を指
In Visual Studio 2022 17.10 Preview 2, we’ve introduced some UX updates and usability improvements to the Connection Manager. With these updates we provide a more seamless experience when connecting to remote systems and/or debugging failed connections. Please install the latest Preview to try it out. Read on to learn what the Connection ...
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く