How can I stop the program before loading any of the linked DLLs?
I've tried to set LoadLibraryExW
function in the Break At Function
debugging option and it stops at that function, but before that I have the following in Visual Studio output windows:
'test.exe': Loaded 'C:WindowsSystem32
tdll.dll', Symbols loaded (source information stripped).
'test.exe': Loaded 'C:WindowsSystem32kernel32.dll', Symbols loaded (source information stripped).
'test.exe': Loaded 'C:WindowsSystem32KernelBase.dll', Symbols loaded (source information stripped).
'test.exe': Loaded 'C:WindowsSystem32uxtheme.dll', Symbols loaded (source information stripped).
'test.exe': Loaded 'C:WindowsSystem32msvcrt.dll', Symbols loaded (source information stripped).
---- plus about 30 DLLs ---
So how can I stop the program in the debugger before loading the ntdll.dll
? Ok, not before loading, but before executing any of DllMain
functions and before initializing any of static objects.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…