For those who don’t know there is open source windows compatible operating system which looks like windows. In fact they aim to provide OS which is binary compatible with Windows OS. This will allow your Windows applications and drivers to run as they would on your Windows system.
Being an open source OS you can learn lot from its source code.
You can download ReactOS from www.reactos.org