Ring3下蓝屏的代码demo

#include <stdio.h>
#include <windows.h>
#include <tlhelp32.h>

const ULONG SE_DEBUG_PRIVILEGE = 20;
const ULONG SE_SHUTDOWN_PRIVILEGE = 19;

typedef struct _UNICODE_STRING
{
   
	USHORT Length;
	USHORT MaximumLength;
	PWCH   Buffer;
}UNICODE_STRING, *PUNICODE_STRING;

typedef enum _PROCESSINFOCLASS
{
   
	ProcessBasicInformation,           //0
	ProcessQuotaLimits,                //1
	ProcessIoCounters,                 //2
	ProcessVmCounters,                 //3
	ProcessTimes,                      //4
	ProcessBasePriority,               //5
	ProcessRaisePriority,              //6
	ProcessDebugPort,                  //7 
	ProcessExceptionPort,              //8
	ProcessAccessToken,                //9
	ProcessLdtInformation,             //10
	ProcessLdtSize,                    //11
	ProcessDefaultHardErrorMode,       //12
	ProcessIoPortHandlers,             //13
	ProcessPooledUsageAndLimits,       //14
	ProcessWorkingSetWatch,            //15
	ProcessUserModeIOPL,               //16 
	ProcessEnableAlignmentFaultFixup,  //17
	ProcessPriorityClass,              //18
	ProcessWx86Information,            //19
	ProcessHandleCount,                //20
	ProcessAffinityMask,               //21
	ProcessPriorityBoost,              //22
	ProcessDeviceMap,                  //23
	ProcessSessionInformation,         //24
	ProcessForegroundInformation,      //25
	ProcessWow64Information,           //26
	ProcessImageFileName,              //27
	ProcessLUIDDeviceMapsEnabled,      //28
	ProcessBreakOnTermination,         //29  0x1D
	ProcessDebugObjectHandle,          //30
	ProcessDebugFlags,                 //31
	ProcessHandleTracing,              //32
	ProcessIoPriority,                 //33
	ProcessExecuteFlags,               //34
	ProcessTlsInformation,             //35
	ProcessCookie,                     //36
	ProcessImageInformation,           //37
	ProcessCycleTime,                  //38
	ProcessPagePriority,               //39
	ProcessInstrumentationCallback,    //40
	ProcessThreadStackAllocation,      //41
	ProcessWorkingSetWatchEx,          //42
	ProcessImageFileNameWin32,         //43
	ProcessImageFileMapping,           //44
	ProcessAffinityUpdateMode,         //45
	ProcessMemoryAllocationMode,       //46
	MaxProcessInfoClass                //47
} PROCESSINFOCLASS;

typedef enum _THREADINFOCLASS
{
   
	ThreadBasicInformation,             //0
	ThreadTimes,                        //1
	ThreadPriority,                     //2
	ThreadBasePriority,                 //3
	ThreadAffinityMask
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值