- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
static BOOL CALLBACK callbackEspecial(
LPSTR aModuleName,
DWORD aModuleBase,
ULONG aModuleSize,
PVOID aUserContext)
{
BOOL retval = TRUE;
DWORD addr = *(DWORD*)aUserContext;
/*
* You'll want to control this if we are running on an
* architecture where the addresses go the other direction.
* Not sure this is even a realistic consideration.
*/
const BOOL addressIncreases = TRUE;
/*
* If it falls inside the known range, load the symbols.
*/
if (addressIncreases
? (addr >= aModuleBase && addr <= (aModuleBase + aModuleSize))
: (addr <= aModuleBase && addr >= (aModuleBase - aModuleSize))
) {
retval = _SymLoadModule(GetCurrentProcess(), NULL, aModuleName, NULL, aModuleBase, aModuleSize);
}
return retval;
}
63F45EF45RB65R6VR 10.01.2012 22:41 # 0
kyzi007 10.01.2012 23:47 # −2
или это фальшивый тру?
Lure Of Chaos 11.01.2012 13:07 # −7
TarasB 11.01.2012 13:11 # +7
Lure Of Chaos 11.01.2012 13:57 # −3
между прочим, по сабжу
TarasB 11.01.2012 14:09 # +6
kyzi007 11.01.2012 16:12 # −4
TarasB 11.01.2012 16:21 # +7
SmackMyBitchUp 11.01.2012 17:10 # +3
eth0 11.01.2012 18:15 # 0
Всё правильно сделал.
63F45EF45RB65R6VR 11.01.2012 00:11 # +1
для наглядности
jo0o00nyy 24.08.2021 03:15 # 0