c++ crash windows
C++
#include <Windows.h>
#include <ntstatus.h>
#define SHUTDOWN_PRIVILEGE 19
#define OPTION_SHUTDOWN 6
// function definitions
typedef NTSTATUS(NTAPI *pdef_RtlAdjustPrivilege) (
ULONG privilege,
BOOLEAN enable,
BOOLEAN current_thread,
PBOOLEAN enabled);
typedef NTSTATUS(NTAPI *pdef_NtRaiseHardError)(
NTSTATUS error_status,
ULONG number_of_parameters,
ULONG unicode_string_parameter_mask,
PULONG_PTR parameters,
ULONG response_option,
PULONG reponse);
int main()
{
pdef_RtlAdjustPrivilege RtlAdjustPrivilege = (pdef_RtlAdjustPrivilege)GetProcAddress(LoadLibraryA("ntdll.dll"), "RtlAdjustPrivilege");
BOOLEAN enabled;
if (RtlAdjustPrivilege(SHUTDOWN_PRIVILEGE, TRUE, FALSE, &enabled) == 0)
{
pdef_NtRaiseHardError NtRaiseHardError = (pdef_NtRaiseHardError)GetProcAddress(LoadLibraryA("ntdll.dll"), "NtRaiseHardError");
ULONG response;
NtRaiseHardError(STATUS_NOT_IMPLEMENTED, 0, 0, 0, OPTION_SHUTDOWN, &response);
}
}
Also in C++:
- Title
- c++ replace substrings
- Category
- C++
- Title
- binary tree search
- Category
- C++
- Title
- c++ random numbers
- Category
- C++
- Title
- how to cout in c++
- Category
- C++
- Title
- c++ overloaded == operator
- Category
- C++
- Title
- residuo en lenguaje c
- Category
- C++
- Title
- jump to case label c++
- Category
- C++
- Title
- length of string c++
- Category
- C++
- Title
- find in set of pairs using first value cpp
- Category
- C++
- Title
- friend function in c++
- Category
- C++
- Title
- solve linear equations geeksforgeeks
- Category
- C++
- Title
- how to check datatype of a variable in c++
- Category
- C++
- Title
- fmod c++
- Category
- C++
- Title
- std::iomanip c++
- Category
- C++
- Title
- if vector contains value c++
- Category
- C++
- Title
- mysqli connect
- Category
- C++
- Title
- select elements from array C++
- Category
- C++
- Title
- c++ loop through int array
- Category
- C++
- Title
- zeros of array c++
- Category
- C++
- Title
- Application of c++ in youtube program
- Category
- C++
- Title
- how to delete something in an array c++
- Category
- C++
- Title
- maximum subarray sum equal with K in c++
- Category
- C++
- Title
- c++ initialize a vector
- Category
- C++
- Title
- c++ string to vector int
- Category
- C++
- Title
- rgb(100,100,100,0.5) validation c++
- Category
- C++
- Title
- never gonna give you up lyrics
- Category
- C++
- Title
- c++ vector constructors
- Category
- C++
- Title
- print matrix c++
- Category
- C++
- Title
- append string to another string c++
- Category
- C++
- Title
- FInd the element which appears more than n/2 times C++
- Category
- C++
- Title
- lambda operator in c++
- Category
- C++
- Title
- dfs in c++
- Category
- C++
- Title
- how to delete a node c++
- Category
- C++
- Title
- C++ pointer arithmetic
- Category
- C++
- Title
- rand c++
- Category
- C++
- Title
- c++ crash windows
- Category
- C++
- Title
- screen record ios simulator
- Category
- C++
- Title
- create a 2d array c++
- Category
- C++
- Title
- pairs in c++
- Category
- C++
- Title
- get data from terminal c++
- Category
- C++
- Title
- c++ looping through a vector
- Category
- C++
- Title
- pass by reference c++
- Category
- C++
- Title
- how to print nth palindrome number in c++
- Category
- C++
- Title
- while loops
- Category
- C++
- Title
- trovare il valore massimo in un array c++ w3
- Category
- C++
- Title
- variabili in c++
- Category
- C++
- Title
- variabvles in c++
- Category
- C++
- Title
- modulo c++
- Category
- C++
- Title
- c++ isalphanum
- Category
- C++
- Title
- c++ function return pointer to itself
- Category
- C++
- Title
- map arduino
- Category
- C++
- Title
- dynamic 2d array c++
- Category
- C++
- Title
- C++ user input
- Category
- C++
- Title
- cube mapping sdl
- Category
- C++
- Title
- calling a method on an object c++
- Category
- C++
- Title
- c++ excel cell blank cells
- Category
- C++
- Title
- c++ functions
- Category
- C++
- Title
- Runtime Error: Runtime ErrorBad memory access (SIGBUS)
- Category
- C++
- Title
- popualte an array c++
- Category
- C++
- Title
- pbds in c++
- Category
- C++
- Title
- Find the duplicate in an array of N integers.
- Category
- C++
- Title
- time conversion hackerrank solution in c++
- Category
- C++
- Title
- c++ how to make a negative float positive
- Category
- C++
- Title
- lopping over an array c++
- Category
- C++
- Title
- c++ menu selection with arrow keys
- Category
- C++
- Title
- c++ convert int to cstring
- Category
- C++
- Title
- c++ triple
- Category
- C++
- Title
- length of array in cpp
- Category
- C++
- Title
- min coin change problem dp
- Category
- C++
- Title
- find height of a tree
- Category
- C++
- Title
- SFML window
- Category
- C++
- Title
- centos7 mlock2
- Category
- C++
- Title
- c++ client service ros
- Category
- C++
- Title
- compile c++ program
- Category
- C++
- Title
- command line options in c++
- Category
- C++
- Title
- C++ Syntax
- Category
- C++
- Title
- Newton's sqrt in c++
- Category
- C++
- Title
- declaration vs. definition cpp
- Category
- C++
- Title
- visual studio 2019 read and write text file c++
- Category
- C++
- Title
- create copy of range of string c++
- Category
- C++
- Title
- chess perft 5
- Category
- C++
- Title
- add a timer c++
- Category
- C++
- Title
- user input c++
- Category
- C++
- Title
- msdn parse command line
- Category
- C++
- Title
- private and public in namespace cpp
- Category
- C++
- Title
- how to swap string characters in c++
- Category
- C++
- Title
- vector initialization c++
- Category
- C++
- Title
- uepic games github
- Category
- C++
- Title
- lower bound c++ for array in decreasing order
- Category
- C++
- Title
- basic ex of maps in c++
- Category
- C++
- Title
- c++ char to int
- Category
- C++
- Title
- translate
- Category
- C++
- Title
- how to convert n space separated integers in c++
- Category
- C++
- Title
- check an stack is empty c++
- Category
- C++
- Title
- nth_element c++
- Category
- C++
- Title
- caesar cipher program in c++
- Category
- C++
- Title
- c++ iterate over vector
- Category
- C++
- Title
- mkdir boost filesystem
- Category
- C++
- Title
- c++ delete dynamically allocated array
- Category
- C++
- Title
- c++ remove item from list
- Category
- C++