windows basic functions and class