Open remote pipe with specific username and password?
I want to open a named pipe on a remote NT workstation from my own workstation. But the user that I am currently logged in as doesn't exist on the remote workstation. So I want to open the pipe with a particular user name and password that does exist on the remote machine. (Note that there is no domain or directory services to synchronise accounts between the two machines.)
Normally, I connect to a named pipe with CreateFile("\\RemoteMachineName\pipe\pipename", ...). I notice that CreateFile() takes a LPSECURITY_ATTRIBUTES lpSecurityAttributes parameter, which is normally NULL. Can I specify a remote user and password through lpSecurityAttributes? If so, how do I set this up? If not, how else could I do what I want?