Identify the windows console type : Normal user or runas window
Posted on 2009-04-30
Could anyone please tell me if there is a way to find out the type of console window from where user is running the application. Basically, I want to differentiate between normal console window (cmd.exe) and runas console window (runas /usr:username cmd.exe).
Is there any environment, registry or anything that indicate the current console window is runas console?
I am not sure what are the zones this question eligible for.