启动win32进程并设置位置 [英] Start win32 process and set location

查看:107
本文介绍了启动win32进程并设置位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我这里有一些用户有包括我自己在内的双显示器,我注意到有时我浪费了生产力,因为我需要将窗口移到希望它们显示在屏幕上的位置.一些应用程序,例如mstsc或Outlook.我希望每次都出现在同一台显示器上.

是否有一种方法可以从.net应用程序启动进程,从而允许您设置显示哪个屏幕,甚至显示屏幕上的位置?

香港专业教育学院试图寻找没有运气的任何东西,希望我只是没有合适的名词来提出我需要的答案.

I have some users here who have dual monitors including myself and I have noticed that I have wasted productivity at times as I need to move windows to the screen I want them displayed on. Some of the applications such as mstsc or outlook. I would like to have show up on the same monitor every time.

Is there a way to start a process from a .net application that allows you to set which screen or even the location on the screen that it shows up?

Ive tried searching for anything on this without any luck and am hoping I just don''t have the right term to bring up the answer I need.

推荐答案

http://msdn.microsoft.com/en-us/library/ms682425(VS.85 ).aspx [ ^ ]是CreateProcess的文档.

http://www.pinvoke.net/default.aspx/kernel32/CreateProcess.html [ ^ ]是p/invoke签名.

传入的结构可让您指定窗口位置.
http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx[^] is the docs for CreateProcess.

http://www.pinvoke.net/default.aspx/kernel32/CreateProcess.html[^] is the p/invoke signature.

The struct you pass in lets you specify a window position.


这篇关于启动win32进程并设置位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆