add some basic codes for win32api.