第二种思路,我用SYSTEM权限创建了一个新的desktop,然后switch到这个desktop没有问题,
但是想在这个桌面创建一个低权限进程,试了好多方法都不行,
1.createprocesswithlogonw ->winlogon.exe报错
2.logonuser + createprocessasuser ->无效句柄
3.msdn的例子 Starting an Interactive Client Process in C++ 没任何反映。。
MSDN 说到“The calling process must have an associated window station, either assigned by the system at process creation time or set by the SetProcessWindowStation function.”。