Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. PROGRAM AB_Rus_Launcher;
  2. uses
  3. Windows,
  4. SysUtils,
  5. APIHook in 'APIHook.pas';
  6.  
  7. CONST
  8. APP_TITLE = 'AB_Rus_Launcher v1.0';
  9.  
  10. PROCEDURE Err (Mes: STRING);
  11. BEGIN
  12. Windows.MessageBox(0, PCHAR(Mes), APP_TITLE, Windows.MB_ICONSTOP);
  13. HALT;
  14. END; // .procedure Err
  15.  
  16. VAR
  17. ExePath: STRING; // Ïóòü ê èñïîëíÿåìîìó ôàéëó
  18. DllPath: STRING; // Ïóòü ê âíåäðÿåìîé DLL
  19. PInfo: TProcessInformation; // Èíôîðìàöèÿ î ïðîöåññå
  20.  
  21. BEGIN
  22. //IF ParamCount = 0 THEN BEGIN
  23. // Err('Íå óêàçàí ïóòü ê èñïîëíÿåìîìó ôàéëó');
  24. //END; // .if
  25. //IF ParamCount = 1 THEN BEGIN
  26. // Err('Íå óêàçàí ïóòü ê âíåäðÿåìîé DLL');
  27. //END; // .if
  28. //ExePath:=ParamStr(1);
  29. ExePath := 'h3blade.exe';
  30. IF NOT SysUtils.FileExists(ExePath) THEN BEGIN
  31. Err('Óêàçàííûé ôàéë "'+ExePath+'" íå ñóùåñòâóåò');
  32. END; // .if
  33. //DllPath:=ParamStr(2);
  34. DllPath := 'AB_Rus_Fixes.dll';
  35. IF NOT SysUtils.FileExists(DllPath) THEN BEGIN
  36. Err('Óêàçàííûé ôàéë "'+DllPath+'" íå ñóùåñòâóåò');
  37. END; // .if
  38. APIHook.RunProcessWithHookDll(ExePath, DllPath, PInfo);
  39. END.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement