How to present credentials in order to open file?

后端 未结 3 986
广开言路
广开言路 2020-12-06 12:55

How do I specify the username and password in order for my program to open a file for reading? The program that needs to access the file is running from an account that does

3条回答
  •  误落风尘
    2020-12-06 13:11

    You can impersonate a user who has the necessary rights. There is an article on MSDN that describes how to do this.

提交回复
热议问题