Make sure buffer is large enough for the nul terminator
[TortoiseGit.git] / src / TortoiseProc / TortoiseProc.h
blob29637a04f91081762775fd9b289ba9d86231859a
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2013 - TortoiseGit
4 // Copyright (C) 2003-2008 - TortoiseSVN
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #pragma once
22 #ifndef __AFXWIN_H__
23 #error include 'stdafx.h' before including this file for PCH
24 #endif
27 #include "resource.h" // main symbols
29 #include "..\\TortoiseShell\\resource.h"
31 /**
32 * \ingroup TortoiseProc
33 * Main class of the TortoiseGitProc.exe\n
34 * It is the entry point when calling the TortoiseGitProc.exe and
35 * handles the command line. Depending on the command line
36 * other 'modules' are called, usually dialog boxes which
37 * themselves then execute a specific function.\n\n
38 * Many commands are executed using the CGitProgressList which
39 * just displays the common notify callbacks of the libgit2 commands.
43 class CTortoiseProcApp : public CWinAppEx
45 public:
46 CTortoiseProcApp();
47 ~CTortoiseProcApp();
49 // Overrides
50 public:
51 virtual BOOL InitInstance();
52 virtual int ExitInstance();
54 BOOL CheckMsysGitDir();
56 void CheckUpgrade();
57 void CheckForNewerVersion();
58 void EnableCrashHandler();
59 void InitializeJumpList(const CString& appid);
60 void DoInitializeJumpList(const CString& appid);
62 ULONG_PTR m_gdiplusToken;
63 // Implementation
65 private:
68 DECLARE_MESSAGE_MAP()
69 private:
70 bool retSuccess;
73 extern CTortoiseProcApp theApp;
74 extern CString g_sGroupingUUID;
75 extern HWND hWndExplorer;
76 extern CString sOrigCWD;