C++ 打开exe文件的方法(VS2008)

#include "stdafx.h"
#include <Windows.h>
#include <ShellAPI.h>

int _tmain(int argc, _TCHAR* argv[])
{
	SHELLEXECUTEINFO shell = { sizeof(shell) };
	shell.fMask = SEE_MASK_FLAG_DDEWAIT;
	shell.lpVerb = L"open";
	shell.lpFile = L"C:\\windows\\NOTEPAD.EXE";
	shell.nShow = SW_SHOWNORMAL;
	BOOL ret = ShellExecuteEx(&shell);
	return 0;
}

 

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2022-01-21
  • 2021-10-20
  • 2021-12-26
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2021-06-19
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-09-19
  • 2021-10-19
相关资源
相似解决方案