microsoft / Detours

Detours is a software package for monitoring and instrumenting API calls on Windows. It is distributed in source code form.
MIT License
5.18k stars 1.01k forks source link

Minor fixes in symtest example #167

Closed reiniert closed 3 years ago

reiniert commented 3 years ago

Fixed invocations of SymGetModuleInfo64 and SymEnumSymbols Tested on x64 only.

Output snippets from symtest.exe before fix:

SymGetModuleInfo64(FFFFFFFFFFFFFFFF, 000000006EBC0000) [64] failed: 87

and

===Enum===
SymEnumSymbols() failed: 318

Output snippets from symtest.exe after fix:

SymGetModuleInfo64(FFFFFFFFFFFFFFFF, 000000006EBC0000) [64] succeeded: 0
NumSyms:         0
SymType:         3
ModuleName:      target64
ImageName:       target64.dll
LoadedImageName: target64.dll

and

===Enum===
  000000006EBD4A60: __newclmap
  000000006EBD4A60: __newclmap
  000000006EBD2238: __guard_xfg_dispatch_icall_fptr
  000000006EBDDA40: _fltused
  000000006EBD8AC0: __mask_mant
  000000006EBDD000: SelfHidden
  000000006EBC1000: Target
  000000006EBC1060: Hidden
Microsoft Reviewers: Open in CodeFlow
bgianfo commented 3 years ago

@reiniert looks good to me, verified locally. 👍 Thanks for the contribution!

ghost commented 3 years ago

Hello @bgianfo!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.