first working code, uses C executable to call WinAPI
native WinAPI usage