Win32: Rewrite the service layer