Thread: PRS-500 Logging ebookUsb.dll calls
View Single Post
Old 10-21-2006, 08:54 AM   #2
gseryakov
Enthusiast
gseryakov began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
Quote:
Originally Posted by geekraver
Note that you *will* need to modify your existing ebookUsb.dll, changing the name to ibookUsb.dll, and changing the first letter of each entry point to be an I (so the Usb* functions become Isb* and the CheckBlock function becomes IheckBlock).
You can avoid the binary editing: use run-time dynamic linking (LoadLibrary/GetProcAddress). Another possibility could be (I am not 100% sure about it) to create a custom export lib with exports renaming like
Code:
; ibookUsb.def
LIBRARY      "ibookUsb"
EXPORTS
...
    IheckBlock = CheckBlock
...
gseryakov is offline   Reply With Quote