Made syntax adjustments for win32