Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.8 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #if !defined(AFX_SERVICEINSTALLDLG_H__761BDEEF_D549_4F10_817C_1C1FAF9FCA47__INCLUDED_)
  9. #define AFX_SERVICEINSTALLDLG_H__761BDEEF_D549_4F10_817C_1C1FAF9FCA47__INCLUDED_
  10. #if _MSC_VER > 1000
  11. #pragma once
  12. #endif // _MSC_VER > 1000
  13. // JobWatchDlg.h : header file
  14. //
  15. #include "resource.h"
  16. #include "tier1/utlvector.h"
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CJobWatchDlg dialog
  19. class CServiceInstallDlg : public CDialog
  20. {
  21. // Construction
  22. public:
  23. CServiceInstallDlg( CWnd* pParent = NULL); // standard constructor
  24. virtual ~CServiceInstallDlg();
  25. // Dialog Data
  26. //{{AFX_DATA(CJobWatchDlg)
  27. enum { IDD = IDD_SERVICE_INSTALL_DIALOG};
  28. //}}AFX_DATA
  29. // Overrides
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(CJobWatchDlg)
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. protected:
  37. SC_HANDLE m_hSCManager;
  38. void VerifyInstallFiles();
  39. bool DoStartExisting();
  40. bool NukeDirectory( const char *pDir, char errorFile[MAX_PATH] );
  41. bool DoUninstall( bool bShowMessage );
  42. // Generated message map functions
  43. //{{AFX_MSG(CJobWatchDlg)
  44. virtual BOOL OnInitDialog();
  45. virtual void OnCancel();
  46. virtual void OnInstall();
  47. virtual void OnUninstall();
  48. virtual void OnStartExisting();
  49. virtual void OnStopExisting();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_SERVICEINSTALLDLG_H__761BDEEF_D549_4F10_817C_1C1FAF9FCA47__INCLUDED_)