How to preselect Administrator when running an application using ShellExecuteEx with verb "runas"? (
        Posted  
        
            by Xinxua
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Xinxua
        
        
        
        Published on 2010-05-18T13:35:39Z
        Indexed on 
            2010/05/18
            13:41 UTC
        
        
        Read the original article
        Hit count: 322
        
I have an application which runs another application (mine) using the WinAPI "ShellExecuteEx" with the verb "RunAs" so that the other application should start with "Administrator" credentials.
My OS is Windows XP. (Do not bother about other operating system, as I have specific code in place)
The only problem with this thing is that the "Current User" comes preselected. I want it to be the "Following User" with Administrator selected.
How to do this?
© Stack Overflow or respective owner