rogee

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;

分类:

技术点:

相关文章:

  • 2021-12-05
  • 2021-08-26
  • 2021-12-05
  • 2021-10-01
  • 2022-12-23
  • 2021-10-26
  • 2021-10-08
猜你喜欢
  • 2021-12-31
  • 2021-12-15
  • 2021-10-02
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案