Autor Beitrag
Philipp_Reitter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Fr 31.03.06 16:31 
hi

ich hab das hei in meine unit geschrieben (script stammt nicht von mir aber sollte gehen)
um den process zu verstecken

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

   function RegisterServiceProcess
    (dwProcessID, dwType: DWord) : DWord; stdcall;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure ZeigeAnwendung;
    procedure VersteckeAnwendung;
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}
[code:1:f68e628e0d][/code:1:f68e628e0d]
 function RegisterServiceProcess
  (dwProcessID, dwType: DWord): DWord;
  external 'KERNEL32.DLL' name 'RegisterServiceProcess';

procedure TForm1.ZeigeAnwendung;
begin
  RegisterServiceProcess(0,0);
end;

procedure TForm1.VersteckeAnwendung;
begin
  RegisterServiceProcess(0,1);
end;

end.


scheint ja zu gehen aber beim start kommt folgende fehlermeldung

ausblenden Quelltext
1:
2:
3:
 Project 1.exe - Einsprungspunkt nicht gefunden 
Der Procedureeinsprungspunkt "RegisterServiceProcess" wurde in der DLL "KERNEL32.DLL" nicht gefunden.
                              [OK]


und das programm hängt sich auf!!!!

kann mir jemand helfen???

Danke im vorraus
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 31.03.06 16:42 
Die Funktion gibt es schlicht und ergreifend unter Win2K nicht mehr - und das aus gutem Grund.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Fr 31.03.06 16:43 
Hallo,

RegisterServiceProcess gabs bei Win9X & ME, aber das gibts seit Win2000 nicht mehr (gabs das je bei NT? :gruebel:), dementsprechend kann das natürlich nicht funktionieren, weil die Funktion nicht in kernel32.dll enthalten, geschweige denn exportiert wird.

Eine Anwendung unter XP zu verstecken ist nur mit relativ viel Aufwand möglich - zum Glück.

Gruß,
raziel

_________________
JSXGraph
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Fr 31.03.06 16:47 
kann man sonst irgendwie den process verstecken????
wir brauchen das für eine Software (Kindersicherung fürs internet ) und die soll man nicht so einfach ausschalten können - verstehst du?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 31.03.06 16:54 
Warum wollen diese ganzen Skript-Kiddies immer ne Kindersicherung selber proggen??? Ich versteh's nicht ... Kennen sich mit ihrem System nicht mal Ansatzweise aus und wollen es dann gegen andere sichern ...

TIPP: Nimm eine vorgefertigte Programm-Lösung; damit wirst Du mehr Spaß haben!!!

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.


Zuletzt bearbeitet von BenBE am Fr 31.03.06 16:59, insgesamt 1-mal bearbeitet
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Fr 31.03.06 16:57 
ne vorgefertigte lösung von was von der internet sicherung oder von dem process verstecken und wie kann ich jetzt meinem process verstecken?????
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 31.03.06 17:00 
Kindersicherung ...

Muss mich da raziel nämlich anschließen ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 31.03.06 17:05