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.
関数を呼び出すためにプログラムを管理者として実行する必要があるかどうかを簡単に判断する方法があるかどうかを調べようとしています。ありがとう!
そうです。関数を実行できますが、で失敗した場合はGetLastError() == ERROR_ACCESS_DENIED、管理者権限が必要です。
GetLastError() == ERROR_ACCESS_DENIED