Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Aug 1st, 2006, 3:20 PM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,827
Rep Power: 5 Sane will become famous soon enough
Making A Program Run On Startup?

No, I do not mean when a user's session is started. I realise ...

HKEY_LOCALMACHINE > SOFTWARE > MICROSOFT > Windows > CurrentVersion > Run

... will run it when a session is started. I need a program to automatically start before a user even has the chance to log on.

I tried googling some stuff already, but I had no clue what specific terms to use.
Sane is offline   Reply With Quote
Old Aug 1st, 2006, 3:27 PM   #2
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,206
Rep Power: 5 grumpy is on a distinguished road
Under windows, the type of program you want to produce is described as a "windows service". The ways of developing such an application are a little challenging: your application needs to communicate with the SCM (Service Control Manager) both to install itself so it can be run independently of a user login, and so the SCM can control it (eg terminate it when windows shuts down).

SCM is often expressed verbally as "scum" which reflects the distaste a fair few developers have at the though of developing windows services. The API is not difficult, but it's not a thing of beauty either.
grumpy 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Language display in program Prm753 C++ 3 May 30th, 2006 5:45 PM
Help in making a GUI for a program DeLoRtEd1 C++ 8 Jan 14th, 2006 3:20 PM
making a program rerun itself? D-Ferg27 C++ 24 Nov 27th, 2005 6:43 PM
Tutorials for making a P2P program? Palladio C++ 3 Nov 26th, 2005 3:51 AM
making a program wait dark_omen C# 4 Jun 6th, 2005 3:48 PM




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

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