How to get pixel color while in windows logon screen mode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • visweswaran2830
    New Member
    • Nov 2009
    • 92

    #1

    How to get pixel color while in windows logon screen mode

    Hi,
    Is it possible to getpixel color in vc++/c++ while windows logon screen mode.
    If possible means, can You tel me the way to get
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    What is windows "logon screen mode"?

    Perhaps you should tell us what you are trying to do, and why you are trying to do it.

    Comment

    • johny10151981
      Top Contributor
      • Jan 2010
      • 1059

      #3
      I dont know whether it is possible or not.

      But in windows, before user logging in, only services get started, if they are enable as automatic.
      check
      control panel>administr ative tools>services for all running services.

      What you can try is create a service that will take screen shot after it get loaded.

      a service get loaded before user log in. I dont know whether it would wok or not. at least you can try :)

      Regards,
      Johny

      Comment

      • RedSon
        Recognized Expert Expert
        • Jan 2007
        • 4980

        #4
        I don't know how you could get the device context of the login window.

        http://msdn.microsoft.com/en-us/libr...09(VS.85).aspx

        Comment

        • johny10151981
          Top Contributor
          • Jan 2010
          • 1059

          #5
          I dont know it either. But it seems that windows get that the device context in order to generate log in window.

          Even after you log out (not shutdown)of window you still have that screen.

          I am thinking another plan(whatever you do is upto you. I wont take any responsibility of what i have said):

          windows system sethc.exe in :\windows\syste m32\. it get run when you press shift button 5 time on a row.
          1. what you can do is write your program normally to get screen shot
          2. take a backup of sethc.exe say as sethc.exe.bk
          3. now rename you program as sethc.exe and copy it to :/windows/system32/
          4. now restart the machine. when log in screen is ready press shift 5 times on a row.

          develop the program in such a way that it wont create any window of its won. it will take the snap shot and save it somewhere.

          I still dont know whether it will work or not.

          More over i dont do this experiment with original version of windows :)

          make your choice :)

          best regards,
          johny

          Comment

          • RedSon
            Recognized Expert Expert
            • Jan 2007
            • 4980

            #6
            I would be surprised if that worked. But if it did that would be cool.

            Comment

            • johny10151981
              Top Contributor
              • Jan 2010
              • 1059

              #7


              Check this out :)

              Comment

              • RedSon
                Recognized Expert Expert
                • Jan 2007
                • 4980

                #8
                Did you try just hitting the print screen button at that time as well?

                Comment

                • johny10151981
                  Top Contributor
                  • Jan 2010
                  • 1059

                  #9
                  I only did hit printscreen button. Now I am 100% sure it is possible :)

                  If it is possible by printscreen button then it must have to be possible by gdi library..

                  Comment

                  Working...