Home » Category » Microsoft Visual C & C++

Microsoft Visual C & C++: SHELLEXECUTEINFO using different credentials

202| Sat, 09 Feb 2008 18:38:00 GMT| sambo| Comments (3)
Is it possible to implement a shell using a different set of credentials than the current users'?

Keywords & Tags: shellexecuteinfo, different, credentials, microsoft, visual c++, vc

URL: http://www.7prog.com/visual-c-c++/272838/
 
«« Prev - Next »» 3 helpful answers below.
You ( as a process) can impersonate a different user but I don't understand what you mean by "implementing a shell".

padexart | Sat, 10 Nov 2007 23:46:00 GMT |

Is it possible to implement a shell using a different set of credentials than the current users'?Perhaps, CreateProcessAsUser (http://msdn.microsoft.com/library/en-us/dllproc/base/createprocessasuser.asp) is what you are looking for... ;)

(However, if you need to open say a Doc file, you will have to find out the application that is responsible for the same... And invoke it with the command line paramter.)

siddhartha | Sat, 10 Nov 2007 23:47:00 GMT |

I ended up using CreateProcessWithLogonW (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocessasuser.asp).

Thanks!

sambo | Sat, 10 Nov 2007 23:48:00 GMT |

Microsoft Visual C & C++ Hot Answers

Microsoft Visual C & C++ New questions

Microsoft Visual C & C++ Related Categories