Re: DLL loading prolem when injecting into another process

2008-08-02 Thread Juan Lang
> What do I have to do to get this patch accepted ? Write a regression test that shows the problem, marked with todo_wine. --Juan

RE: DLL loading prolem when injecting into another process

2008-08-01 Thread Hongbo Ni
Rolf Kalbermatter wrote: > I do not think that the solution is to "correct" LoadLibrary to actually do > a search for linked libraries in the parent library's directory too. > > However I fear the proper fix might go deep into Wine server and probably is > above most people's head except for Alex

Re: DLL loading prolem when injecting into another process

2008-08-01 Thread Steven Edwards
On Sat, Aug 2, 2008 at 2:10 AM, Steven Edwards <[EMAIL PROTECTED]> wrote: > Its also documented in Inside Windows by Jeffery Richter if you happen > to have a copy of that laying around. Sorry make that Advanced Windows. I gave my copy to a friend so I don't recall much about the chapter, except t

Re: DLL loading prolem when injecting into another process

2008-08-01 Thread Steven Edwards
On Fri, Aug 1, 2008 at 6:25 PM, Rolf Kalbermatter <[EMAIL PROTECTED]> wrote: > Ok I think I understand. You are using a technique I have once read about in > Microsoft System Journal back in about 1994. And this is certainly tricky. Its also documented in Inside Windows by Jeffery Richter if you h

RE: DLL loading prolem when injecting into another process

2008-08-01 Thread Rolf Kalbermatter
Hongbo Ni wrote: > Back to DLL injecting, It works since Windows 95. My program > has been working for many years, but not on Wine. > > Here is how to inject a DLL into another process: > . Ok I think I understand. You are using a technique I have once read about in Microsoft System Journ

RE: DLL loading prolem when injecting into another process

2008-08-01 Thread Hongbo Ni
Rolf Kalbermatter wrote: > My guess is that it will however fail on most Windows versions except maybe > Vista which would still be a reason to try to implement that behaviour in > Wine > too. However you will likely have to do quite > a bit more tests to then figure out the exact conditions un

RE: DLL loading prolem when injecting into another process

2008-08-01 Thread Rolf Kalbermatter
Hongbo Ni wrote: >> Not sure about what you mean with injecting here but in normal application operation >> when loading a DLL explicitedly from a specific directory (which is not the current >> directory nor the application directory or one of the standard search paths), >> Windows > >

RE: DLL loading prolem when injecting into another process

2008-07-31 Thread Hongbo Ni
> Rolf Kalbermatter wrote:> > Not sure about what you mean with injecting here > but in normal application operation> when loading a DLL explicitedly from a > specific directory (which is not the current> directory nor the application > directory or one of the standard search paths), > Windows

RE: DLL loading prolem when injecting into another process

2008-07-31 Thread Rolf Kalbermatter
Hongbo Ni wrote: >I think when processing the imports for C:\DirA\B.dll to load C.dll, it should >try C:\DirA\C.dll first, then form the standard load locations. > >I think it should call load_library( "C:\DirA\C.dll ", LOAD_WITH_ALTERED_SEARCH_PATH) >so C.dll can be loaded into C:\DirX\X.exe pro

Re: DLL loading prolem when injecting into another process

2008-07-30 Thread Alexandre Julliard
Hongbo Ni <[EMAIL PROTECTED]> writes: > I think it should call load_library( "C:\DirA\C.dll ", > LOAD_WITH_ALTERED_SEARCH_PATH) > so C.dll can be loaded into C:\DirX\X.exe process. > > Alexandre, can you please comment ? You should write test cases. -- Alexandre Julliard [EMAIL PROTECTED]