Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プログラムで citrix xen アプリ セッションをログオフする方法 (サーバー、uid、pwd は知っています)。C# 使用する API は?
ローカルの場合だけでなく、リモートの場合にも WTSLogoffSession を使用できます。ただし、最初に WTSOpenServer を使用してサーバーへのハンドルを取得する必要があります (その後、WTSCloseServer を使用してハンドルを閉じます)。これらは C# API ではなく、ネイティブであることに注意してください。ただし、Platform Invoke を使用して C# から呼び出すことができます。