By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,824 Members | 1,247 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,824 IT Pros & Developers. It's quick & easy.

How to get pixel color while in windows logon screen mode

P: 92
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
Jan 27 '10 #1
Share this Question
Share on Google+
8 Replies


RedSon
Expert 5K+
P: 5,000
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.
Jan 27 '10 #2

100+
P: 1,059
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>administrative 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
Jan 27 '10 #3

RedSon
Expert 5K+
P: 5,000
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
Jan 27 '10 #4

100+
P: 1,059
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\system32\. 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
Jan 27 '10 #5

RedSon
Expert 5K+
P: 5,000
I would be surprised if that worked. But if it did that would be cool.
Jan 27 '10 #6

100+
P: 1,059



Check this out :)
Jan 28 '10 #7

RedSon
Expert 5K+
P: 5,000
Did you try just hitting the print screen button at that time as well?
Jan 28 '10 #8

100+
P: 1,059
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..
Jan 28 '10 #9

Post your reply

Sign in to post your reply or Sign up for a free account.