A forum for reverse engineering, OS internals and malware analysis 

Forum for discussion about kernel-mode development.
 #14952  by Xearinox
 Tue Jul 31, 2012 7:23 pm
Hello.

I want run some process in Screen Saver Desktop for my homework. :D
But documentation for usermode api SwitchDesktop ( http://msdn.microsoft.com/en-us/library ... 85%29.aspx ) in MSDN says:
The SwitchDesktop function fails if the desktop belongs to an invisible window station. SwitchDesktop also fails when called from a process that is associated with a secured desktop such as the WinLogon and ScreenSaver desktops.
Is possible switch to screen saver from documented/undocumented kernel mode function?

Thanks.
 #14973  by EP_X0FF
 Thu Aug 02, 2012 6:51 am
SwitchDesktop->NtUserSwitchDesktop->syscall->ShadowSSDT::NtUserSwitchDesktop->xxxSwitchDesktop

I doubt you can hack this queue because it has multiple checkings on different levels, for example WSF_NOIO (is this non-interactive desktop?) checks in few places. Better create your own desktop and run process within it. Safe, fast and documented way.