![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Sep 2005
Posts: 50
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Sep 2005
Posts: 11
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#4 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Or, you could have a form and set visible to false. :p
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#5 |
|
Programmer
Join Date: Sep 2005
Posts: 50
Rep Power: 0
![]() |
thanks all
i will try it. hope to get best results. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|