flat assembler
Message board for the users of flat assembler.
Index
> Windows > check kernel32 module |
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. |
|||
22 Apr 2008, 16:29 |
|
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 ! |
|||
22 Apr 2008, 18:15 |
|
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 |
|||
22 Apr 2008, 18:17 |
|
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. |
|||
22 Apr 2008, 20:29 |
|
revolution 23 Apr 2008, 01:04
Grom PE wrote:
|
|||
23 Apr 2008, 01:04 |
|
TheLord 23 Apr 2008, 07:27
gonna try this one thanks
|
|||
23 Apr 2008, 07:27 |
|
TheLord 27 Apr 2008, 20:48
hi,
Just a quick up to confirm the WaitForInputIdle() works like a charm, thx revolution. |
|||
27 Apr 2008, 20:48 |
|
revolution 28 Apr 2008, 00:22
Nice to know that function is useful for something.
|
|||
28 Apr 2008, 00:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.