Closed GoogleCodeExporter closed 9 years ago
If standard hooking COM mechanism is used with Index.
First chance exception at $01406E02. Exception class $C0000096 with message
'privileged instruction at 0x01406e02'. Process Project3.exe (7064)
Original comment by david.lo...@gmail.com
on 23 Jan 2015 at 12:26
Hi,
Hooking by name is only supported with pure delphi interface and object.Thats
mean the interface and the class that implement the inteface must be coded in
delphi.
So it will not works with COM interface that are implemented with c++ or others
programming languages.
Mahdi.
Original comment by ismspi...@gmail.com
on 23 Jan 2015 at 1:26
This interface is implemented in Delphi :)
{$EXTERNALSYM IInternetProtocol}
IInternetProtocol = interface(IInternetProtocolRoot)
['{79eac9e4-baf9-11ce-8c82-00aa004ba90b}']
function Read(pv: Pointer; cb: ULONG; out cbRead: ULONG): HResult; stdcall;
function Seek(dlibMove: LARGE_INTEGER; dwOrigin: DWORD; out libNewPosition: ULARGE_INTEGER): HResult; stdcall;
function LockRequest(dwOptions: DWORD): HResult; stdcall;
function UnlockRequest: HResult; stdcall;
end;
Original comment by david.lo...@gmail.com
on 23 Jan 2015 at 1:28
But the class is implemented in c++ (i think).
Original comment by ismspi...@gmail.com
on 23 Jan 2015 at 1:34
Problem was the index. Its really hard to get index sometime..
Original comment by david.lo...@gmail.com
on 23 Jan 2015 at 2:15
You can close this issue with "Wont Fix".
Original comment by david.lo...@gmail.com
on 23 Jan 2015 at 2:26
It not that i don't want to fix !
The c/c++ class does not use the standard rtti (as delphi).. that's make it
mostly impossible to get the function address by name(At least with delphi).
Furthermore rtti in c/c++ can be enabled or disabled by compiler directive (as
delphi).When rtti is disabled there is no way to get the function name.
Have a nice day.
Original comment by ismspi...@gmail.com
on 23 Jan 2015 at 2:44
Original issue reported on code.google.com by
david.lo...@gmail.com
on 23 Jan 2015 at 12:24