I can use the following command to find out if a Windows Terminal Server is in Install Mode.
change user /query
How can I detect this programmatically through the Windows API?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It looks like there is no supported way to do it.
Kernel32.dll exports the required function, but the documentation discourages its use. Also, the documentation doesn’t list an alternative.
http://msdn.microsoft.com/en-us/library/bb432494(v=VS.85).aspx