This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A short program to demonstrate dynamic memory allocation | |
// using a structured exception handler. | |
// compile with x86 vc2019 dev prompt: | |
// cl /nologo /W3 /D "_DEBUG" /EHsc /guard:cf /GS /MTd /Zi pagefault.cpp | |
#include <windows.h> | |
#include <tchar.h> | |
#include <stdio.h> | |
#include <stdlib.h> // For exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Microsoft. All rights reserved. | |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | |
// This example shows how to use a user_trace and a kernel_trace in the same program. | |
#include <iostream> | |
#include <thread> | |
#include <condition_variable> | |
#include "..\..\krabs\krabs.hpp" | |
#include "examples.h" |