| // Copyright 2017 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include <windows.h> |
| |
| #include <wchar.h> |
| |
| #include <string> |
| |
| #include "base/at_exit.h" |
| #include "chrome/updater/win/installer/installer.h" |
| |
| // https://devblogs.microsoft.com/oldnewthing/20041025-00/?p=37483 |
| extern "C" IMAGE_DOS_HEADER __ImageBase; |
| |
| int WINAPI wWinMain(HINSTANCE /* instance */, |
| HINSTANCE /* previous_instance */, |
| LPWSTR command_line, |
| int /* command_show */) { |
| base::AtExitManager exit_manager; |
| return updater::WMain(reinterpret_cast<HMODULE>(&__ImageBase)); |
| } |