First of all, I know I am asking for a lot, but I will really appreciate a lot if someone can help me with this. I tried doing this myself but couldn't get success even after trying for long.
Here is a link to the API and an example in C#
The most important function I want is GetWindowDesktopId()
Thanks in advance!