I made this but it dosen't seem to work....I bet i forgot something,some stupid mistake or i forgot to put in the params.
Delphi-Quellcode:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 =
class(TForm)
Button1: TButton;
procedure koki;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
const
RING0 = '
WinRing0x64.DLL';
var
Form1: TForm1;
RING0: THandle;
implementation
{$R *.dfm}
procedure tform1.koki;
VAR
ho: AnsiString;
begin
ho := ExtractFilePath(application.ExeName) + '
WinRing0x64.DLL';
if FileExists(ho)
then
begin
RING0 := LoadLibrary(PChar(Pfad));
if RING0 > 0
then
showmessage('
loaded');
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
koki;
end;
end.