updater.h 928 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include <string>
  9. #include <windows.h>
  10. #ifdef small
  11. #undef small
  12. #endif // small
  13. #pragma warning(push)
  14. #pragma warning(disable:4091)
  15. #include <DbgHelp.h>
  16. #include <ShlObj.h>
  17. #pragma warning(pop)
  18. #include <Shellapi.h>
  19. #include <Shlwapi.h>
  20. #include <deque>
  21. #include <string>
  22. using std::deque;
  23. using std::wstring;
  24. extern LPTOP_LEVEL_EXCEPTION_FILTER _oldWndExceptionFilter;
  25. LONG CALLBACK _exceptionFilter(EXCEPTION_POINTERS* pExceptionPointers);
  26. LPTOP_LEVEL_EXCEPTION_FILTER WINAPI RedirectedSetUnhandledExceptionFilter(_In_opt_ LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter);
  27. static int updaterVersion = 1000;
  28. static const WCHAR *updaterVersionStr = L"0.1.0";