问题标题: 蓝屏模拟

0
0
已解决
李承耀
李承耀
新手光能
新手光能

#include<windows.h>
#include<iostream>
using namespace std;
int main(){
    system("color 17");
    cout<<"A problem has been detected and windows has been shut down to pr event damage to your computer .\nwin32k. sys\nPAGE_ FAULT_ _IN_ NONPAGED_ arEA\nIf this is the first time you've seen this stop error screen,restart yourcomputer. If this screen appears again, follow these steps :\ncheck to make sure any new hardware or software is pr operly insta1 led.If this is a new insta1 lation, ask your hardware or software manu facturer for any windows updates you might need.\nIf problems continue, disable or remove any newly installed har dware.or softwar e.Disable BIOS memory options such as caching or shadowing.If you need to use safe Mode to remove or disable ponies, restart your computer, press F8 to select Advanced startup options,and then select safe Mode select safe Mode select safe Mode.";
    getchar(); 
}


0
已采纳
被禁言 李秉轩
李秉轩
修练者
修练者
#include <iostream>
#include <Windows.h>
#include <winternl.h>
using namespace std;
typedef NTSTATUS(NTAPI *pdef_NtRaiseHardError)(NTSTATUS ErrorStatus, ULONG NumberOfParameters, ULONG UnicodeStringParameterMask OPTIONAL, PULONG_PTR Parameters, ULONG ResponseOption, PULONG Response);
typedef NTSTATUS(NTAPI *pdef_RtlAdjustPrivilege)(ULONG Privilege, BOOLEAN Enable, BOOLEAN CurrentThread, PBOOLEAN Enabled);
int main()
{
    BOOLEAN bEnabled;
    ULONG uResp;
    LPVOID lpFuncAddress = GetProcAddress(LoadLibraryA("ntdll.dll"), "RtlAdjustPrivilege");
    LPVOID lpFuncAddress2 = GetProcAddress(GetModuleHandle("ntdll.dll"), "NtRaiseHardError");
    pdef_RtlAdjustPrivilege NtCall = (pdef_RtlAdjustPrivilege)lpFuncAddress;
    pdef_NtRaiseHardError NtCall2 = (pdef_NtRaiseHardError)lpFuncAddress2;
    NTSTATUS NtRet = NtCall(19, TRUE, FALSE, &bEnabled); 
    NtCall2(STATUS_FLOAT_MULTIPLE_FAULTS, 0, 0, 0, 6, &uResp); 
    return 0;
}

用这个更好

我要回答