开发者

Privilege used by MoveFileEx()

开发者 https://www.devze.com 2022-12-12 09:16 出处:网络
When calling MoveFileEx() and using MOVEFILE_DELAY_UNTIL_REBOOT for dwFlags. During the actual moving of file what privilege do开发者_Python百科es it use?

When calling MoveFileEx() and using MOVEFILE_DELAY_UNTIL_REBOOT for dwFlags. During the actual moving of file what privilege do开发者_Python百科es it use?

Thanks Kazuo!


Th MSDN doesn't really say anything about this special situtation, but the hint "This value can be used only if the process is in the context of a user who belongs to the administrators group or the LocalSystem account." gives the only logic result that the Administrator privileges will be used to move the file (since the account that called this API might not be there).

0

精彩评论

暂无评论...
验证码 换一张
取 消