Open Win32 App in C#, with extern keyword
来源:互联网 发布:原生js获取json文件 编辑:程序博客网 时间:2024/04/30 08:12
Process _winMergeProc = Process.Start("WinMerge", args);
BringProcessToFront(_winMergeProc);
----
const int SW_RESTORE = 9;
private static void BringProcessToFront(Process process)
{
var hWnd = process.MainWindowHandle;
if (IsIconic(hWnd))
ShowWindow(hWnd, SW_RESTORE);
SetForegroundWindow(hWnd);
}
[DllImport("User32.dll")]
private static extern bool SetForegroundWindow(IntPtr handle);
[DllImport("User32.dll")]
private static extern bool ShowWindow(IntPtr handle, int nCmdShow);
[DllImport("User32.dll")]
private static extern bool IsIconic(IntPtr handle);
0 0
- Open Win32 App in C#, with extern keyword
- Understanding “extern” keyword in C
- Understanding “extern” keyword in C
- How to correctly use the extern keyword in C
- volatile keyword in C
- inline keyword in C
- static keyword in C
- typedef keyword in c/c++
- Can not open file with "ios_base::in | ios_base::app"
- No keyword with name 'Open Browser' found(解决办法)
- c++ extern keyword
- Working with Configuration Files (app.config) in C++/CLI
- Working with Configuration Files (app.config) in C++/CLI
- 解决robotframwork ride运行过程中报错FAIL : No keyword with name 'Open browser' found.
- Example of a SysTray App in Win32
- 基本keyword in SQL
- keyword in Jpa
- Final Keyword In Java
- 对于无线传感网的初步认识
- AutoCAD套合(叠加)卫星影像和矢量路网数据-CAD配准
- Wildcard Matching_Leetcode_#44
- SELinux深入理解
- Jenkins+Maven+SVN+Sonar持续集成(一)Centos6.5上Jenkins安装
- Open Win32 App in C#, with extern keyword
- java处理错误
- MapReduce工作原理图文详解
- Android 通过WIFI状态监听广播,判断进入指定wifi范围
- GDB调试core文件
- 工作记录之ajax方法
- linux定时执行任务后怎么取消
- 在Linux终端下使用代理访问网络
- Java基础学习总结(62)——Java中的流和Socket