--- Marcus Meissner meissner@suse.de wrote:
On Tue, Jul 19, 2005 at 05:06:47AM -0700, Damjan Jovanovic wrote:
--- Marcus Meissner meissner@suse.de wrote:
On Tue, Jul 19, 2005 at 01:14:20AM -0700, Damjan Jovanovic wrote:
I'd like to know if there are any functions in
Wine
for changing the function pointer values in a
DLL's
(or, for that matter, an executable's) import
table at
the time it is loaded.
For exactly what purpose?
If you want to snoop those calls, we already
have
mechanisms for this in place.
Not sure what you mean by "snoop"; I want to alter some functions (CreateFile, ReadFile, WriteFile,
and
DeviceIoControl) in a particular DLL so that they
are
rerouted to libusb, for example.
Might not be easy.
You have to add yourself to dlls/ntdll/file.c
NtCreateFile, NtWriteFile, NtReadFile ...
Last time I suggested that people were not happy, to say the least.
What I had in mind is writing my own implementation of CreateFile and the like, that deal with those functions, and call wine's own CreateFile and family as necessary.
It's definitely possible, I was just wondering if wine has any built-in mechanisms for patching DLL imports.
Ciao, Marcus
Bye Damjan
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com