Sample code in Windows