Thread: Automatic Startup

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    3

    Automatic Startup

    First post...

    I dont know to much of the windows API "lingo" so i didnt get any good results with my search.

    How can i set up my win32 application to automaticly run when windows finishes booting?

    If this isnt a valid windows question feel free to move it to where its suposed to be

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    The simplest thing is to just put it into your startup group
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    3
    Oh i didnt think of that, unfortunaly that now bring me to another question which is a little more complicated. I dont expect you to wite up all the code for me but hopefully help to understand how to do it.

    I want to be able to check for a shortcut in this folder
    "C:\Documents and Settings\All Users\Start Menu\Programs\Startup"
    and/ or create a shortcut of my application in that folder.

    I would assume this is another win32 API Question?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    I hope you're going to ask the user if they want to put your program into the "all users" startup group.

    > I would assume this is another win32 API Question?
    http://www.google.co.uk/search?hl=en...startup+folder
    Do some digging around there.
    There's almost certainly a registry entry or two which will tell you the name of the startup folder, even if there isn't a specific startup folder API.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5

  6. #6
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

  7. #7
    Registered User
    Join Date
    Jun 2006
    Posts
    3
    Im still learning the basics of the windows API and all the extra code in those Threads confuses me, i understand what has to be done, but every example i have seen and searched for it different.

    I dont want to edit the registy.

    I dont supose there is any way some body could go threw it with me, i didnt want to post any questions in those threads, mainly because there dead and the rules of this forums says not to without a good reason.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Startup process
    By ssharish2005 in forum Tech Board
    Replies: 8
    Last Post: 01-23-2009, 05:01 AM
  2. Startup using STARTUP folder method for winXP & win98
    By hanhao in forum Windows Programming
    Replies: 2
    Last Post: 05-26-2005, 04:59 AM
  3. automatic variables
    By FOOTOO in forum C Programming
    Replies: 5
    Last Post: 03-08-2005, 06:30 PM
  4. automatic startup
    By Draco in forum Windows Programming
    Replies: 5
    Last Post: 04-24-2004, 10:55 AM
  5. Automatic vs. Static Duration
    By JMB in forum C++ Programming
    Replies: 7
    Last Post: 10-14-2002, 07:16 PM