I am trying to find an opportunity to transform a desktop application into a web application. For example, a desktop application opens on a server (say, written on a pure Win32 API), from which an HTML page is created using some GUI-proxy, with all the controls available in the desktop application. When interacting with these controls, the web application sends AJAX requests to the server, where some kind of "GUI-proxy" sends information about the action to the desktop-application and in response sends the response of the desktop-application to this action.
I wrote how I imagine the possibility of converting a desktop application to a web application. I admit that writing can be complete nonsense. If you know something about this topic, please help.