Use Windows APIs to know windows application how to work