zoukankan      html  css  js  c++  java
  • 调用QQ截图

    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
  • 相关阅读:
    c++的socket编程 tcp
    qt下载
    定义数组类型
    虚析构函数
    运算符重载
    友元函数
    const成员函数
    静态成员变量,静态成员函数
    linux安装mysql
    智能指针
  • 原文地址:https://www.cnblogs.com/findumars/p/5451031.html
Copyright © 2011-2022 走看看