Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi , i'm research about VNC , at source code of NVNC ( C# ), I see it use CopyFromScreen function :

public static Bitmap CreateScreenCapture(Rectangle r)
{
try
{
int width = r.Width;
int height = r.Height;
Bitmap bitmap = new Bitmap(width, height);
Graphics g = Graphics.FromImage(bitmap);
g.CopyFromScreen(r.X, r.Y, 0, 0, new Size(width, height));
return bitmap;
}
catch (Exception)
{
System.Threading.Thread.Sleep(500);
try
{
int width = r.Width;
int height = r.Height;
Bitmap bitmap = new Bitmap(width, height);
Graphics g = Graphics.FromImage(bitmap);
g.CopyFromScreen(r.X, r.Y, 0, 0, new Size(width, height));
}
catch (Exception)
{
return null;
}
return null;
}
}

Then how can it capture LOG ON WINDOW and send to clients ( what i know is window service can't capture Image at LOG ON )

I read some articles , know about some way to take screenshot :
+ Using GDI
+ Using DirectX ( I have try slimX and it's not working )
+ Using Mirror Driver ( no project examle , wonder if it can take image at window service )
+ Using Window Media ( no project examle , wonder if it can take image at window service )
.....
I hope everybody help me , thank you very much
Posted
Comments
Noor Ahmad Feroozi 5-Jul-15 4:37am    
http://stackoverflow.com/questions/14081220/screen-capturing-in-logon-screen
http://stackoverflow.com/questions/5049122/capture-the-screen-shot-using-net
http://stackoverflow.com/questions/362986/capture-the-screen-into-a-bitmap
Member 11160368 5-Jul-15 9:57am    
Thanks for your help , but unlucky these codes not working at window logon at all , please confirm if we have some code working at WINDOW LOGON as WINDOW SERVICE , or i miss something ?

1 solution

Please help me , i ready to donate if anyone can help me
 
Share this answer
 
Comments
Andi921362 1-Nov-21 17:15pm    
did you find a solution?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900