调用QQ截图
2016-05-01 19:57
344 查看
var SHExecInfo: SHELLEXECUTEINFO; begin //截图前隐藏主程序窗口 Form1.Hide; //等待截图执行完成 SHExecInfo.cbSize := sizeof(SHELLEXECUTEINFO); SHExecInfo.fMask := SEE_MASK_NOCLOSEPROCESS; SHExecInfo.Wnd := Handle; SHExecInfo.lpVerb := 'open'; SHExecInfo.lpFile := 'Rundll32.exe'; SHExecInfo.lpParameters := 'CameraDll.dll,CameraSubArea'; SHExecInfo.lpDirectory := 'CameraDll.dll'; SHExecInfo.nShow := SW_SHOW; SHExecInfo.hInstApp := Handle; ShellExecuteEx(@SHExecInfo); WaitForSingleObject(SHExecInfo.hProcess, INFINITE); CloseHandle(SHExecInfo.hProcess); //截图完成后显示主程序窗口 Form1.Show; end; http://www.cnblogs.com/rogee/archive/2010/09/14/1827247.html[/code]
相关文章推荐
- 学习进度条 第九周
- 算法的艺术
- Django build_in 登录注册模块 注销时页面是admin模块自带的注销页面的原因
- lightoj - 1414 February 29
- 冲刺9
- leetcode 之Remove Duplicates from Sorted Array(1)
- 深入理解Java内存模型——final
- FACTORY METHOD(工厂模式)
- 三四月找实习总结
- 个人冲刺06
- HDU 4709:Herding
- KindlePW3壁纸越狱设置问题
- Leetcode 15. 3Sum
- rt3070无线网卡工作在AP模式----fl2440开发板
- QDialog 添加最大化、最小化按钮和关闭按钮,并且要正常显示
- opencv异常提示之 npoints2 >= 0 || npoints3 >= 0 in fitLine
- 《机器学习实战》学习笔记——第3章 决策树
- java如何获取其它用户登录的真是IP地址
- RxJava-简介及Observable创建
- 最优配对问题