O'Reilly logo

Accelerated Windows Memory Dump Analysis: Training Course Transcript and WinDbg Practice Exercises with Notes, Fourth Edition by Software Diagnostics Services, Dmitry Vostokov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Application Source Code

 

ApplicationA

 

// Illustrates MessageBox memory dump analysis pattern

// Copyright (c) 2011 - 2016 Software Diagnostics Services

// GNU GENERAL PUBLIC LICENSE

// http://www.gnu.org/licenses/gpl-3.0.txt

 

#include "stdafx.h"

 

void thread_A(void *)

{

while (true)

{

Sleep(1000*(int)'A');

}

}

 

void thread_B(void *)

{

while (true)

{

Sleep(1000*(int)'B');

}

}

 

void thread_C(void *)

{

while (true)

{

Sleep(1000*(int)'C');

}

}

 

void thread_D(void *)

{

while (true)

{

MessageBox(NULL, L"Message", L"Error", MB_OK);

Sleep(1000*(int)'D');

}

}

 

void thread_E(void *)

{

while (true)

{

Sleep(1000*(int)'E');

}

}

 

void thread_F(void *)

{

while (true)

{

Sleep(1000*(int)'F');

}

}

 

int _tmain(int argc, _TCHAR* argv[])

{

_beginthread(thread_A, 0, NULL);

_beginthread(thread_B, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required