简体   繁体   English

如何检查Windows 0可执行文件是否正在会话0进程中运行?

[英]How to check if a Windows executable is running in a Session 0 process?

I am running into http://msdn.microsoft.com/en-us/library/windows/desktop/hh404562(v=vs.85).aspx#use_direct3d_in_session_0_processes . 我正在进入http://msdn.microsoft.com/zh-cn/library/windows/desktop/hh404562(v=vs.85).aspx#use_direct3d_in_session_0_processes

I use a few of the processes documenting, and I am running into HRESULT values that suggest my executable is, in fact, running under Session 0. 我使用了一些过程文档,并且遇到了HRESULT值,这表明我的可执行文件实际上在Session 0下运行。

How can I programmatically deduce if I am running under Session 0? 如果我在Session 0下运行,如何以编程方式推断? I would rather gracefully exit than drop out with a mysterious error code. 我宁愿优雅地退出,也不愿退出神秘的错误代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM