add wmain function instead of main function