Windows 8 security problem

I was talking to somebody through razer comms and they somehow got my search history and may have seen my screen through the internet. How can I prevent this and how do they do this?