Sam's Code

Windows Systems Programming

Thursday, November 7, 2024

DLL Delay Load API Sets Umbrella Libs and Loader Snaps

›
[delay load] Windows has the ability to delay load DLLs which can come in handy in a number of scenarios.  By default, the Windows loader wi...
Friday, April 29, 2022

How to Enable Application Verifier in Windbg

›
This is how you enable Application Verifier (appverif) if you are already in the debugger: 0:000> !gflag +vrf Current NtGlobalFlag conten...
Monday, April 11, 2022

Spin Until the Debugger Is Attached

›
Here is a handy trick to make some code wait for a debugger to attach.   Let's say you have some user mode code you need to debug and it...
Wednesday, May 19, 2021

windbg: changing stepping by line instead of instruction

›
 In recently nightly builds of windbgx, I've noticed it has changed the initial default step behavior, or source mode.  Typically while ...
Monday, November 16, 2020

COM Access Violation (AV) Crashes Relating to Unloaded DLLs

›
My team uses a broadly used WinRT API.  Basically, all apps that have a device-related scenario use it.  This means buggy apps that crash wi...
Sunday, November 3, 2019

Howto: Enable Application Verifier Within WinDbg

›
!gflag debugger extention A quick way to enable AppVerifier settings from the kernel debugger is to use !gflag debugger extension. This e...
Wednesday, September 25, 2019

Setting windbg to break in for C++ exceptions

›
Sometimes unhanded C++ exceptions will crash you program. It might looks something like this: (fc0.5204): C++ EH exception - code e06d...
›
Home
View web version

About Me

My photo
sam
View my complete profile
Powered by Blogger.