![]() |
|
|
|
|
#1 |
|
Архивный участник
Join Date: Sep 2006
Posts: 31
|
Not work
lineage2.exe - Error #3703 |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
hd_abs part source
Code:
exename := ExtractFilePath(paramstr(0)) + 'l2.exe';
dllname := ExtractFilePath(paramstr(0)) + 'patch32.dll';
If (Not FileExists(exename)) or (Not FileExists(dllname)) Then
begin
MessageBox(0, 'Error #3703: Can''t find game.', 'Error', MB_OK + MB_ICONSTOP);
halt;
end;
|
|
|
|
|
#3 | |
|
Архивный участник
Join Date: Sep 2006
Posts: 31
|
Quote:
Code:
...
CreateProcess (0,exename);
i:=60;
while h=0 or i!=0 do
begin
Sleep(1000);
h:=FindWindow('l2UnrealWWindowsViewportWindow','Lineage II');
i:=i-1;
end;
If h=0 Then
begin
MessageBox(0, 'Error #3701: Can't run game.', 'Error', MB_OK + MB_ICONSTOP);
end;
If i=0 Then
begin
MessageBox(0, 'Error #3702: Can't run game.', 'Error', MB_OK + MB_ICONSTOP);
halt;
end;
LoadLibrary = (GetProcAddress(GetModuleHandle("kernel32.dll"),"LoadLibrary");
ExitThread = (GetProcAddress(GetModuleHandle("kernel32.dll"),"ExitThread");
...
Answer my PM |
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|