Changing DLL imports in wine

Marcus Meissner meissner at suse.de
Tue Jul 19 08:19:42 CDT 2005


On Tue, Jul 19, 2005 at 05:06:47AM -0700, Damjan Jovanovic wrote:
> 
> 
> --- Marcus Meissner <meissner at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050719/90f23548/attachment.pgp


More information about the wine-devel mailing list