I can intercept LoadLibraryA with no problem at all !
A snippet of code as follows seem's ok
Code: Select all
function LoadLibraryWCallBack(lpLibFilename : PWideChar) : dword; stdcall;
begin
result := LoadLibraryWNext(lpLibFilename);
end;
Code: Select all
function LoadLibraryWCallBack(lpLibFilename : PWideChar) : dword; stdcall;
begin
if true then
result := LoadLibraryWNext(lpLibFilename)
else
begin
result := 0;
setlasterror(ERROR_FILE_NOT_FOUND);
end;
end;
WFT ? I know InjectLibrary uses LoadLibrary from some code madshi sent me ages ago with a much earlier version but I'm stumped as to why this should give me so many problems !!!
Any ideas anyone ?
Code: Select all