I'm writing a program that needs to write files to a network share. My problem is that the program users are working on PCs that are not connected to our domain and the program needs to save files to a network share on the domain. It's not feasible to change all of the user accounts on the PCs to match the user's domain credentials so I want to prompt the user for credentials (they all have domain accounts to access Citrix) and then use those credentials to write the file rather than the local PC credentials.
I've searched and read documentation and found various pieces but I have not found a source that shows me how to supply different credentials when I am writing the file. Can anyone help me?
Thanks in advance,
Mike