본문 바로가기

About Programing/03. Tip

외부 프로그램 실행 방법

 

SHELLEXECUTEINFO sei;

 memset(&sei, 0, sizeof(sei));

 sei.cbSize = sizeof(sei);
 sei.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_FLAG_DDEWAIT; 
 sei.lpFile = "C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE";
 sei.hwnd = NULL;
 sei.lpVerb = "open";
 sei.nShow = SW_SHOWMINIMIZED;

ShellExecuteEx(&sei);