Registriert seit: 27. Mai 2005
Ort: Baden
315 Beiträge
Delphi 2007 Enterprise
|
Re: Wie BlueScreens erzeugen?
27. Okt 2005, 14:48
oh ne ausrede moment mal
Mein Code:
Delphi-Quellcode:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
{
NtCreateProcess( OUT PHANDLE ProcessHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
IN HANDLE ParentProcess,
IN BOOLEAN InheritObjectTable,
IN HANDLE SectionHandle OPTIONAL,
IN HANDLE DebugPort OPTIONAL,
IN HANDLE ExceptionPort OPTIONAL ); }
procedure TForm1.Button1Click(Sender: TObject);
var
h: THandle;
ntx: function(ProcessHandle: PChar; DesiredAccess: PChar; ObjectAttributes: PChar; ParentProcess: PChar; InheritObjectTable: BOOL; SectionHandle:PChar; DebugPort: PChar; ExceptionPort: PChar): Integer;
begin
h := GetModuleHandle(' ntdll.dll');
ntx := GetProcAddress(h, ' NtCreateProcess');
ntx( nil, nil, nil, nil, FALSE, nil, nil, nil);
end;
end.
Mein OS:
Windows XP SP2
Meine CPU:
3600 MHZ, 1 GB RAM
und noch ein kleines bild als beweis
|
|
Zitat
|