The process of rooting is device specific, so it depends on what phone/tablet you have. You really need to do your research and ask in the forum for your specific device. Also I'm not sure what you mean by "flashing of windows". Are you trying to install a Windows Phone operating system on your android phone. I don't know if that's possible, but again, you need to ask in a forum specific to your device.