Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Feb 28th, 2006, 12:23 PM   #1
sackarias
Programmer
 
sackarias's Avatar
 
Join Date: Jan 2006
Posts: 58
Rep Power: 3 sackarias is on a distinguished road
running in the background...

Where/what could I look for to figure out how to make a program run in the background once it's an exe?
sackarias is offline   Reply With Quote
Old Feb 28th, 2006, 12:30 PM   #2
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3 Polyphemus_ is on a distinguished road
Operating system?
Polyphemus_ is offline   Reply With Quote
Old Feb 28th, 2006, 12:48 PM   #3
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
We don't help with making virii.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Feb 28th, 2006, 12:53 PM   #4
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3 Polyphemus_ is on a distinguished road
Especially not people who don't know what they are talking about.
Polyphemus_ is offline   Reply With Quote
Old Feb 28th, 2006, 1:24 PM   #5
sackarias
Programmer
 
sackarias's Avatar
 
Join Date: Jan 2006
Posts: 58
Rep Power: 3 sackarias is on a distinguished road
It would be for Windows.

I take it as an insult that you assume that I'm making a virus. I'm assigned to search and figure out for myself (AKA not your code, not your hardwork) something attribute specific in regards to a program. I choose the ability to hide itself, obviously.

And yes, I don't know what I'm talking about hence me asking a question. I have no lead as to what it would take or the topic names that encompass my question. I want to read and figure it out myself. Is it honestly that hard to simply say "look up _________" or "maybe read more about _____?"

Thanks for your help, it's highly appreciated.
sackarias is offline   Reply With Quote
Old Feb 28th, 2006, 1:42 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
I take it as an insult that you assume that I'm making a virus.
Then you're being unrealistic. Most people that want to hide things have nefarious reasons. People that want to do arcane things without even enough knowledge to research or apply are usually trying to find a short track to script-kiddy-hood. Them's jes' the facks, ma'am. I'll give you one word: services. Come back when you have code.
__________________
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 Feb 28th, 2006, 1:49 PM   #7
sackarias
Programmer
 
sackarias's Avatar
 
Join Date: Jan 2006
Posts: 58
Rep Power: 3 sackarias is on a distinguished road
It's actually an assignment for school. "Pick a topic that is attribute specific to a program, it can be anything, be creative"... write a paper and what not. I don't want code, I just want to know how it works. I don't have malicious intent, I don't have the knowledge to be malicious. That's why I asked more or less for the direction in which I need to go.
sackarias is offline   Reply With Quote
Old Feb 28th, 2006, 3:42 PM   #8
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Hmm, well okay... It depends on how you want to do it. You can register as a service, or you can hide your window. Come to think of it, don't even make a window.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Feb 28th, 2006, 3:51 PM   #9
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3 Polyphemus_ is on a distinguished road
In other words, create a Win32 application, using this for your main function:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
  // blahdieblah
}

instead of the regular main() function.
Polyphemus_ is offline   Reply With Quote
Old Feb 28th, 2006, 4:22 PM   #10
sackarias
Programmer
 
sackarias's Avatar
 
Join Date: Jan 2006
Posts: 58
Rep Power: 3 sackarias is on a distinguished road
Excellent. Thanks for that then.

Services it is.
sackarias 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 10:38 PM.

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