mem100
asked on
remove app from taskbar
I don't want my application to show up on the taskbar. The app is written in delphi 4. Is there a way of removing the app from task manager( for NT& 98)?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you are REALLY keen, you might want to read this thread:
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=10186120
Cheers,
Raymond.
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=10186120
Cheers,
Raymond.
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
function RegisterServiceProcess(dwP rocessID,d wType : DWORD) :
DWORD; stdcall; external 'KERNEL32.DLL';
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormCreate(Sender: TObject);
begin
RegisterServiceProcess(Get CurrentPro cessID,1);
end;
procedure TForm1.FormActivate(Sender : TObject);
var
w: hwnd;
begin
// showwindow(form1.handle,sw _hide);
// w:=findwindow('tapplicatio n',nil);
// showwindow(w,sw_hide);
{To Totally go Invisible}
end;
end.
Ok i think you were waiting for code you could lazely post code straight into your app no?....
Well that will do it under win 9x..
Craig C.
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
function RegisterServiceProcess(dwP
DWORD; stdcall; external 'KERNEL32.DLL';
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormCreate(Sender: TObject);
begin
RegisterServiceProcess(Get
end;
procedure TForm1.FormActivate(Sender
var
w: hwnd;
begin
// showwindow(form1.handle,sw
// w:=findwindow('tapplicatio
// showwindow(w,sw_hide);
{To Totally go Invisible}
end;
end.
Ok i think you were waiting for code you could lazely post code straight into your app no?....
Well that will do it under win 9x..
Craig C.
ASKER
to craig
Post your comment as an answer. the register serviceprocess doesn't work on NT but the rest of code does hide the form and the application from the taskbar
Post your comment as an answer. the register serviceprocess doesn't work on NT but the rest of code does hide the form and the application from the taskbar
ShowWindow(Application.Han
for tht ctrl-del-alt thingy here is the code...
Const RSP_SIMPLE_SERVICE = 1;
Const RSP_UNREGISTER_SERVICE = 0;
//hide
RegisterServiceProcess(Get
//show
RegisterServiceProcess(Get
this should be able to hide your application completely.... try it out...
For NT its a bit more difficult, you can still do this:
ShowWindow(Application.Han
to remove the button from the task bar, but to remove from the task manager is very difficult on NT...
Cheers,
Raymond.