new windows code generation