flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 22 Apr 2008, 16:29
In WinXP and Win2K kernel32.dll is mandatory[1], apps can't run without it. It is guaranteed to be loaded at all times.
[1] In Win2K you can leave kernel32 out of the import table and the loader will still load the DLL. In WinXP you must include kernel32 in the import table else the app will fail to load. |
|||
![]() |
|
TheLord 22 Apr 2008, 18:15
no no, I know this.
My dll is redirecting CreateProcessW() to MyCreateProcess() => in this new function, I inject the dll in the target process (see my previous topic to know why). I randomly fails to inject because of the remotethread that is executing the LoadLibrary() in order to load the DLL. If I put a sleep it works correctly so I assume kernel32 is not loaded in the target process when I try to inject the DLL, I dont see any other issue ! |
|||
![]() |
|
revolution 22 Apr 2008, 18:17
Try WaitForInputIdle
If you are the Lord, shouldn't we be asking you questions? hehe, just joking, no offense |
|||
![]() |
|
Grom PE 22 Apr 2008, 20:29
revolution wrote: In Win2K you can leave kernel32 out of the import table and the loader will still load the DLL. In WinXP you must include kernel32 in the import table else the app will fail to load. You reversed the facts about Win2k and WinXP. |
|||
![]() |
|
revolution 23 Apr 2008, 01:04
Grom PE wrote:
|
|||
![]() |
|
TheLord 23 Apr 2008, 07:27
gonna try this one thanks
|
|||
![]() |
|
TheLord 27 Apr 2008, 20:48
hi,
Just a quick up to confirm the WaitForInputIdle() works like a charm, thx revolution. |
|||
![]() |
|
revolution 28 Apr 2008, 00:22
Nice to know that function is useful for something.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.