Refactor windows entry|subsystem