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
You can impersonate a user who has the necessary rights. There is an article on MSDN that describes how to do this.