Advertisement
Gov_777

CreateProcessW TOTALCMD

Jun 17th, 2016
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.39 KB | None | 0 0
  1.  function StartTOTALCMD64(TOTALCMD64: 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(TOTALCMD64),nil, nil, nil, False, 0, nil, nil, SI, PI);
  11. //StartTOTALCMD64('C:\totalcmd\TOTALCMD64.EXE');//применение
  12. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement