Advertisement
Gov_777

CreateProcessW

Jan 26th, 2016
5,364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.43 KB | None | 0 0
  1. function StartFirefox(Firefox, URL: string): Boolean;
  2. var
  3.  si: TStartupInfo;
  4.  pi: TProcessInformation;
  5. begin
  6. ZeroMemory(@si,sizeof(si));
  7. si.cb := SizeOf(si);
  8. si.dwFlags:=STARTF_USESHOWWINDOW;
  9. si.wShowWindow:=SW_SHOWMAXIMIZED;
  10. result:=CreateProcessW(LPWSTR(Firefox), LPWSTR(URL), nil, nil, False, 0, nil, nil, SI, PI);
  11. //StartFirefox('c:\Program Files\Firefox Developer Edition\firefox.exe',string.empty);//применение
  12. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement