简体   繁体   English

Win32强制窗口模式在进程中

[英]Win32 force windowed mode on process

I'm looking to force an application to be windowed (like you would with alt+enter) even if it starts in full screen mode. 我希望即使在全屏模式下启动应用程序也要强制窗口化(就像使用alt + enter一样)。

My initial thought was to use user32.dll "ShowWindow" with either "Restore" or "ShowNormal". 我最初的想法是将user32.dll“ ShowWindow”与“ Restore”或“ ShowNormal”一起使用。 However if it started full screen it will not work. 但是,如果以全屏模式启动,它将无法正常工作。

Is there any way to force any given application to be windowed using c#? 有什么方法可以使用c#强制给定的应用程序窗口化吗?

You can try to send messages to the app's window to get it behave. 您可以尝试将消息发送到应用程序的窗口以使其正常运行。 I remember there is this app for a MMORPG game and it was called "Windower" It forced the game, Final Fantasy 11, to run in a window. 我记得有一个用于MMORPG游戏的应用程序,它被称为“ Windower”。它迫使游戏《最终幻想11》在窗口中运行。 It was used until the vendor made their own windowing code back in 2007 or 2008. 直到供应商在2007或2008年制作自己的窗口代码之前,一直使用它。

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

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