Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 9th, 2005, 3:25 PM   #1
anant_tickoo
Programmer
 
Join Date: Sep 2005
Posts: 50
Rep Power: 0 anant_tickoo is an unknown quantity at this point
background process in NT

hey
how do i make a program to run in background. i mean user can't see it but its running in back ground . platform=windows NT.
thanks
anant_tickoo is offline   Reply With Quote
Old Oct 9th, 2005, 3:27 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Write it an run it as a service. See MSDN for details.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 9th, 2005, 4:38 PM   #3
Bazukaz
Newbie
 
Join Date: Sep 2005
Posts: 11
Rep Power: 0 Bazukaz is on a distinguished road
If you only need to hide your App from taskbar/Alt-tab,
create main application's window with the WS_EX_TOOLWINDOW style.
GetWindowLong and SetWindowLong functions can be used to accomplish this.

Also you can inject a thread into another process by using CreateRemoteThread function , passing LoadLibrary address as an argument(you will need to create a DLL).

You can find more information on www.codeproject.com
Bazukaz is offline   Reply With Quote
Old Oct 9th, 2005, 6:44 PM   #4
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Or, you could have a form and set visible to false. :p
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Oct 10th, 2005, 1:00 AM   #5
anant_tickoo
Programmer
 
Join Date: Sep 2005
Posts: 50
Rep Power: 0 anant_tickoo is an unknown quantity at this point
thanks all

i will try it. hope to get best results.
anant_tickoo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:50 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC