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. Executing a process a startup of System?(Vista & Windows 2008) [modified]

Executing a process a startup of System?(Vista & Windows 2008) [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
question
7 Posts 3 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.
  • K Offline
    K Offline
    Kushagra Tiwari
    wrote on last edited by
    #1

    Hello . I want to execute a process at startup of computer before the user has logged on to the machine. How should I do this , I had made a Winlogon pacakage for this but It supports os till Windows 2003 . For later versions of OS including Vista and Windows 2008 where they have removed the concept of Winlogon notify , can any body let me know the alternative for this. Regards, Kushagra

    modified on Thursday, October 29, 2009 8:59 AM

    I 1 Reply Last reply
    0
    • K Kushagra Tiwari

      Hello . I want to execute a process at startup of computer before the user has logged on to the machine. How should I do this , I had made a Winlogon pacakage for this but It supports os till Windows 2003 . For later versions of OS including Vista and Windows 2008 where they have removed the concept of Winlogon notify , can any body let me know the alternative for this. Regards, Kushagra

      modified on Thursday, October 29, 2009 8:59 AM

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      I think your stuck with a service. There's lots of code examples on msdn, and here on codepeject for services, so I'd start your search there. Iain.

      I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[^]

      K 1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        I think your stuck with a service. There's lots of code examples on msdn, and here on codepeject for services, so I'd start your search there. Iain.

        I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[^]

        K Offline
        K Offline
        Kushagra Tiwari
        wrote on last edited by
        #3

        Hi Iain, I got my solution . What I did was I made my service a part of ServiceGroup (SCSI Class) and by doing this I was able to start my service much before the Login Dialog comes into picture after the system is booted up and thus at this time I checked for Number of active users using api NetWkstaUserEnum . At this time the count comes to be zero and thus I am able to spawn my process at startup of the system even before the user has logged on. Somebody please mark this answer as this solution works fine. Regards, Kushagra

        D 1 Reply Last reply
        0
        • K Kushagra Tiwari

          Hi Iain, I got my solution . What I did was I made my service a part of ServiceGroup (SCSI Class) and by doing this I was able to start my service much before the Login Dialog comes into picture after the system is booted up and thus at this time I checked for Number of active users using api NetWkstaUserEnum . At this time the count comes to be zero and thus I am able to spawn my process at startup of the system even before the user has logged on. Somebody please mark this answer as this solution works fine. Regards, Kushagra

          D Offline
          D Offline
          dxlee
          wrote on last edited by
          #4

          You are very smart.

          K 1 Reply Last reply
          0
          • D dxlee

            You are very smart.

            K Offline
            K Offline
            Kushagra Tiwari
            wrote on last edited by
            #5

            ?? Why so ??

            D 1 Reply Last reply
            0
            • K Kushagra Tiwari

              ?? Why so ??

              D Offline
              D Offline
              dxlee
              wrote on last edited by
              #6

              I was not aware of the function NetWkstaUserEnum until I read your post. You enlightened me. That's why.

              K 1 Reply Last reply
              0
              • D dxlee

                I was not aware of the function NetWkstaUserEnum until I read your post. You enlightened me. That's why.

                K Offline
                K Offline
                Kushagra Tiwari
                wrote on last edited by
                #7

                Oh is it :) If it helped it please mark the answer as good so that we can close the thread :) Kushagra

                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