码迷,mamicode.com
首页 > 其他好文 > 详细

调用QQ截图

时间:2016-05-01 20:26:25      阅读:242      评论:0      收藏:0      [点我收藏+]

标签:

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

调用QQ截图

标签:

原文地址:http://www.cnblogs.com/findumars/p/5451031.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!