Search code examples
c#screenshotremoteview

C#, remote screenshot without client and server


I just tried a program demonstrated in C# on YouTube. The video shows how to build a client/server based program to capture desktop remotely, and it works perfectly. Now I have a question. Is is possible to do the same job without the client/server architecture? Is there some kind of relative windows API that I can access remotely? My imagination is just to click a button on computer A(with specific program) and receive a screenshot from computer B(without specific program) through network. Is is possible? Thank you very much!


Solution

  • The thing is, that when you access "some API" remotely and get result from that "some API" it's called a client / server architecture, where you is a client and "some API" is a server.

    You can't receive something if there is no one to give))

    If you wanted to ask "is there anything in windows that would give me a screenshot without injecting anything and etc?" - then:

    1. if you don't care about laws, theoretically, you could find some bug in system itself or applications that are running on it, and through them get access to that computer and make it do whatever you want, that's called hacking, the very black hacking, and that type of things are hard to do.

    2. if you care just a little about any of laws and don't want to visit a prison, then the answer is no.