Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C program to start before windows boot

C program to start before windows boot

Scheduled Pinned Locked Moved C / C++ / MFC
14 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Rajesh R Subramanian

    You mean, you want to write a boot loader? That's out of the scope of discussion for a forum thread like this (this board is specific for asking questions on C/C++/MFC). Google on the said topic though, and you may find something that might help you.

    "Real men drive manual transmission" - Rajesh.

    A Offline
    A Offline
    Albert Holguin
    wrote on last edited by
    #4

    Yep, boot loader is the only way to do it.

    1 Reply Last reply
    0
    • A ayandelhi

      Hi!! I want to write a password program that asks for a password before win os boots. even before windows prompts for password. and then if password is correct it boots windows.. if wrong password is entered it again asks for password. I dont wanna use CMOS password.. After the user is asked to select the OS from boot manager, the password should be asked for n then is correct password is entered, the os boots otherwise it asks for password again.

      A Offline
      A Offline
      ayandelhi
      wrote on last edited by
      #5

      I guess boot manager is responsible for loading the OS files... After the user has selected the preferred OS to boot, My program is executed.. If there is list of files that the OS loads into memory before prompting the user for password(Windows' original password), I want my program to be included into this list as the second last program to be executed.. Can i do so???

      L 2 Replies Last reply
      0
      • A ayandelhi

        I guess boot manager is responsible for loading the OS files... After the user has selected the preferred OS to boot, My program is executed.. If there is list of files that the OS loads into memory before prompting the user for password(Windows' original password), I want my program to be included into this list as the second last program to be executed.. Can i do so???

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #6

        By that time you will have reached the Windows login prompt so there seems little point. Why do you want to duplicate what is already available in a standard Windows configuration?

        The best things in life are not things.

        A 1 Reply Last reply
        0
        • L Lost User

          By that time you will have reached the Windows login prompt so there seems little point. Why do you want to duplicate what is already available in a standard Windows configuration?

          The best things in life are not things.

          A Offline
          A Offline
          ayandelhi
          wrote on last edited by
          #7

          i want to use my password program before win os prompts for password...

          1 Reply Last reply
          0
          • A ayandelhi

            I guess boot manager is responsible for loading the OS files... After the user has selected the preferred OS to boot, My program is executed.. If there is list of files that the OS loads into memory before prompting the user for password(Windows' original password), I want my program to be included into this list as the second last program to be executed.. Can i do so???

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #8

            Hi, Yes there is a list of native applications that execute before session manager,winlogon. You can find the list in the registry at HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\BootExecute There is an article here on codeproject that covers the native application subject fairly well. Three Steps Down the Stairs: From Win32 User-Land through Native API to Kernel[^] Best Wishes, -David Delaune

            A 1 Reply Last reply
            0
            • L Lost User

              Hi, Yes there is a list of native applications that execute before session manager,winlogon. You can find the list in the registry at HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\BootExecute There is an article here on codeproject that covers the native application subject fairly well. Three Steps Down the Stairs: From Win32 User-Land through Native API to Kernel[^] Best Wishes, -David Delaune

              A Offline
              A Offline
              ayandelhi
              wrote on last edited by
              #9

              Thanks for that... it'll surely help...

              1 Reply Last reply
              0
              • A ayandelhi

                Hi!! I want to write a password program that asks for a password before win os boots. even before windows prompts for password. and then if password is correct it boots windows.. if wrong password is entered it again asks for password. I dont wanna use CMOS password.. After the user is asked to select the OS from boot manager, the password should be asked for n then is correct password is entered, the os boots otherwise it asks for password again.

                S Offline
                S Offline
                Stefan_Lang
                wrote on last edited by
                #10

                A word of caution: While this is surely doable, you should take care that your password program doesn't accidentally lock out a user who forgot his password. Since this is to run before the windows logon, 'user' in this case means everyone!. Are you really sure you want to run this before the windows logon? I mean, if a user forgets his windows password, an administrator can still log on using his own password, and reset the users password for him. But if your program fails, how then will you ever get back on your machine?

                A 1 Reply Last reply
                0
                • S Stefan_Lang

                  A word of caution: While this is surely doable, you should take care that your password program doesn't accidentally lock out a user who forgot his password. Since this is to run before the windows logon, 'user' in this case means everyone!. Are you really sure you want to run this before the windows logon? I mean, if a user forgets his windows password, an administrator can still log on using his own password, and reset the users password for him. But if your program fails, how then will you ever get back on your machine?

                  A Offline
                  A Offline
                  ayandelhi
                  wrote on last edited by
                  #11

                  Thanks... Will surely take care of it... Thanks for this scenario...

                  1 Reply Last reply
                  0
                  • A ayandelhi

                    Hi!! I want to write a password program that asks for a password before win os boots. even before windows prompts for password. and then if password is correct it boots windows.. if wrong password is entered it again asks for password. I dont wanna use CMOS password.. After the user is asked to select the OS from boot manager, the password should be asked for n then is correct password is entered, the os boots otherwise it asks for password again.

                    C Offline
                    C Offline
                    cmk
                    wrote on last edited by
                    #12

                    Do you mean like writing your own gina.dll (or the replacement process post-vista) See:http://msdn.microsoft.com/en-ca/magazine/cc163489.aspx[^]

                    ...cmk The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying. - John Carmack

                    1 Reply Last reply
                    0
                    • A ayandelhi

                      Hi!! I want to write a password program that asks for a password before win os boots. even before windows prompts for password. and then if password is correct it boots windows.. if wrong password is entered it again asks for password. I dont wanna use CMOS password.. After the user is asked to select the OS from boot manager, the password should be asked for n then is correct password is entered, the os boots otherwise it asks for password again.

                      N Offline
                      N Offline
                      Ni7408
                      wrote on last edited by
                      #13

                      listen go to bios setting and there is a hardware password option select it and then give the password which u feel like and save and exit . The next time you boot in first u will have to enter password and your windows will boot.try it i have done it :)

                      A 1 Reply Last reply
                      0
                      • N Ni7408

                        listen go to bios setting and there is a hardware password option select it and then give the password which u feel like and save and exit . The next time you boot in first u will have to enter password and your windows will boot.try it i have done it :)

                        A Offline
                        A Offline
                        ayandelhi
                        wrote on last edited by
                        #14

                        DO u know this password can be bypassed... I've bypassed this password so many times... Thats why i dont want to use it..

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups