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. ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
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. Ciao, Marcus
Marcus Meissner wrote:
If you want to snoop those calls, we already have mechanisms for this in place.
I'm not the original poster, but I'd like to hear more about this. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo nospam(a)mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ Spammer: Any of you guys looking for a permanent position in Scotland? Kaz Kylheku: No, I'm looking for a thug in Scotland who might be interested in beating up off-topic Usenet spammers, on a pro bono basis.
--- Marcus Meissner <meissner(a)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.
Ciao, Marcus
____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
On Tue, Jul 19, 2005 at 05:06:47AM -0700, Damjan Jovanovic wrote:
--- Marcus Meissner <meissner(a)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 ... Ciao, Marcus
--- Marcus Meissner <meissner(a)suse.de> wrote:
On Tue, Jul 19, 2005 at 05:06:47AM -0700, Damjan Jovanovic wrote:
--- Marcus Meissner <meissner(a)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
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.
No it doesn't. Ciao, Marcus
participants (3)
-
Damjan Jovanovic -
Erik de Castro Lopo -
Marcus Meissner