C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 04-16-2003, 04:29 AM   #1
Registered User
 
Join Date: Apr 2003
Posts: 3
What's the code for a program to run in Task manager, under the processes tab

What's the code for a program to run in Task manager, under the processes tab under windows 2000/xp?

i want this certain program (in C) to run in the background, like it won't show up in the taskbar or the tray, it's just running as a service, is there and independant source code(that i can just insert my program code and combine the 2) that will make me be able to do this?

also the only way to exit the program is by ctrl+alt+delete, processes, then end task

thanks for taking your time to read this, all help is appreciated


i have no idea what this thing i want to do is called, i tried searching, and i've been looking into some c programming books for about 4 days straight in my own time, but no luck, and this is the only place i can think of where i can get c programming help, sorry for the ignorance
newbie1 is offline   Reply With Quote
Old 04-16-2003, 04:50 AM   #2
Unleashed
 
Join Date: Sep 2001
Posts: 1,755
Try the windows board for such a question.

FWIW..
WinExec("Your program", SW_HIDE);
__________________
The world is waiting. I must leave you now.
Shadow is offline   Reply With Quote
Old 04-16-2003, 05:22 PM   #3
Registered User
 
Join Date: Apr 2003
Posts: 3
it doesn't work, i know i'm probably doing this wrong...when i double click the file a the program window still pops up

like:

i want the "process code" to hide the program that it's "on" in the processes tab

so when you double click the file, it automatically moves itself to the processes tab, and disappears out of site

Last edited by newbie1; 04-16-2003 at 06:27 PM.
newbie1 is offline   Reply With Quote
Old 04-16-2003, 07:36 PM   #4
Confused
 
Magos's Avatar
 
Join Date: Sep 2001
Location: Sweden
Posts: 3,122
Doesn't all programs show up in the taskmanager? At least mine do (I know since sometimes they crash soooo hard ).

If you don't want a window to show up, don't create one. With no window, it won't show up in the taskbar either (bottom of the screen).
__________________
MagosX.com

Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Magos is offline   Reply With Quote
Old 04-16-2003, 09:39 PM   #5
Registered User
 
Join Date: Apr 2003
Posts: 3
yeah i'm not creating a window, it does that by default, any suggestions?
newbie1 is offline   Reply With Quote
Old 04-17-2003, 07:07 AM   #6
Confused
 
Magos's Avatar
 
Join Date: Sep 2001
Location: Sweden
Posts: 3,122
Quote:
Originally posted by newbie1
it does that by default
Visual basic?

How does that happen? What do you use? Try creating an empty project instead of starting off some template. Or remove all CreateWindow() / CreateDialog().
__________________
MagosX.com

Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Magos is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-doing a C program to run in Win2000 or XP fifi C Programming 5 08-17-2007 05:32 PM
Help me with my basic program, nothing I create will run Ravens'sWrath C Programming 31 05-13-2007 02:35 AM
Letting a program run as a task ( background ) GanglyLamb C# Programming 5 12-01-2005 08:52 AM
Interface Question smog890 C Programming 11 06-03-2002 05:06 PM
Trying to make rand different per program run Dreamerv3 C++ Programming 6 01-18-2002 03:26 AM


All times are GMT -6. The time now is 07:43 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22