c++ bsod
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
- modulo c++
- Category
- C++
- Title
- c++ empty stream
- Category
- C++
- Title
- how to declare a function in c++
- Category
- C++
- Title
- check for bst
- Category
- C++
- Title
- primeros numeros primos
- Category
- C++
- Title
- how to print for limited decimal values in c++
- Category
- C++
- Title
- how to sort an array c++
- Category
- C++
- Title
- git branch in my bash prompt
- Category
- C++
- Title
- transpose matrix eigen c++
- Category
- C++
- Title
- passing a vector to a function c++
- Category
- C++
- Title
- convert char to string - c++
- Category
- C++
- Title
- qt graphics scene map cursor position
- Category
- C++
- Title
- repeating character in c++
- Category
- C++
- Title
- bitset c++
- Category
- C++
- Title
- console colors in C++
- Category
- C++
- Title
- how to find length of string in c++
- Category
- C++
- Title
- c++ show time elapsed
- Category
- C++
- Title
- how to convert a string to a double c++
- Category
- C++
- Title
- preorder traversal
- Category
- C++
- Title
- c++ reset stream
- Category
- C++
- Title
- capitalize first letter c++
- Category
- C++
- Title
- max heap c++ stl;
- Category
- C++
- Title
- c++ transform
- Category
- C++
- Title
- How to find the suarray with maximum sum using divide and conquer
- Category
- C++
- Title
- error: redefinition of ‘class Customer’
- Category
- C++
- Title
- C++ w3schools
- Category
- C++
- Title
- c++ overload operator
- Category
- C++
- Title
- Html tabulation
- Category
- C++
- Title
- iterate 2d array c++
- Category
- C++
- Title
- euler's totient function c++
- Category
- C++
- Title
- c++ get type name of object
- Category
- C++
- Title
- basic ex of maps in c++
- Category
- C++
- Title
- double max value c++
- Category
- C++
- Title
- constant variables in c++
- Category
- C++
- Title
- do while loop c++
- Category
- C++
- Title
- c++ method name
- Category
- C++
- Title
- primitive and non primitive data types in c++
- Category
- C++
- Title
- euler phi gfg
- Category
- C++
- Title
- c++ vector iterator
- Category
- C++
- Title
- what is time complexity of insertion sort
- Category
- C++
- Title
- sorting of array in c++
- Category
- C++
- Title
- statement that causes a function to end in c++
- Category
- C++
- Title
- inheritance protected in c++
- Category
- C++
- Title
- stringstream in c++ with delimiter
- Category
- C++
- Title
- count a character in a string c++
- Category
- C++
- Title
- can you use a return to print a string when referencing an integer c++
- Category
- C++
- Title
- c++ do you not inherit constructor
- Category
- C++
- Title
- leveling system c++
- Category
- C++
- Title
- sub string of vector c++
- Category
- C++
- Title
- primeros numeors primos menores que
- Category
- C++
- Title
- string substr c++
- Category
- C++
- Title
- char* to int in cpp
- Category
- C++
- Title
- c++ replace n substrings
- Category
- C++
- Title
- matrix multiplication c++ eigen
- Category
- C++
- Title
- c++ string to stream
- Category
- C++
- Title
- c++ uint32_t
- Category
- C++
- Title
- check if intent has extras
- Category
- C++
- Title
- how initilaize deffult value to c++ class
- Category
- C++
- Title
- int max in c++
- Category
- C++
- Title
- c++ class member initialization
- Category
- C++
- Title
- for loop
- Category
- C++
- Title
- shortest path with bfs in c++
- Category
- C++
- Title
- print matrix c++
- Category
- C++
- Title
- filling 2d array with 0 c++
- Category
- C++
- Title
- matrix eigen c++ example
- Category
- C++
- Title
- c++ max of array
- Category
- C++
- Title
- longest common subsequence
- Category
- C++
- Title
- what is difffrence between s.length() and s.size()
- Category
- C++
- Title
- : error: ‘cont’ cannot be used as a function return (cont(cont-1))/2;
- Category
- C++
- Title
- chess perft 5
- Category
- C++
- Title
- exponenciacion binaria
- Category
- C++
- Title
- ue4 modular character
- Category
- C++
- Title
- char **
- Category
- C++
- Title
- fail() in c++
- Category
- C++
- Title
- bfs in C++
- Category
- C++
- Title
- how to cout in c++
- Category
- C++
- Title
- cut by delimiter c++
- Category
- C++
- Title
- pairs in c++
- Category
- C++
- Title
- error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(s[i] != "b"){
- Category
- C++
- Title
- stack function in cpp
- Category
- C++
- Title
- binary search stl in c++
- Category
- C++
- Title
- c++ code to print hello world
- Category
- C++
- Title
- compare values within within a vector c++
- Category
- C++
- Title
- c++ std::copy to cout
- Category
- C++
- Title
- registering a new QML type
- Category
- C++
- Title
- c++ code for polynomial addition
- Category
- C++
- Title
- switch c++
- Category
- C++
- Title
- to_string c++
- Category
- C++
- Title
- string input
- Category
- C++
- Title
- linear search in c++
- Category
- C++
- Title
- vprintf
- Category
- C++
- Title
- Runtime Error: Runtime ErrorFloating-point exception (SIGFPE
- Category
- C++
- Title
- convert string to stream c++
- Category
- C++
- Title
- how to convert qt string to string
- Category
- C++
- Title
- how are graphics in games made
- Category
- C++
- Title
- how to know the correct class of objects cpp
- Category
- C++
- Title
- size of a matrix c++
- Category
- C++
- Title
- c++ split at character
- Category
- C++
- Title
- friend function in c++
- Category
- C++
- Title
- c++ template function
- Category
- C++