typedefs and reorganization of win_systemFunctions.h