Take a look at
sanos[
^]: it's a minimalistic open-source OS, developed using
Visual Studio and it implements a compatibility layer to
Windows console applications.
The languages used are
assembler and
plain C, and browsing its source code could give you an idea of the work in which you are embarking.