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.
MoveFileEx() を呼び出し、dwFlags に MOVEFILE_DELAY_UNTIL_REBOOT を使用する場合。ファイルの実際の移動中に、どの権限が使用されますか?
ありがとうカズオ!
MSDNは、この特別な状況について実際には何も述べていませんが、「この値は、プロセスが管理者グループまたはLocalSystemアカウントに属するユーザーのコンテキストにある場合にのみ使用できます」というヒントがあります。管理者権限がファイルの移動に使用されるという唯一の論理結果を示します(このAPIを呼び出したアカウントが存在しない可能性があるため)。