Source code of Windows XP (NT5)
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.

87 lines
2.3 KiB

  1. // SnapIn.h : main header file for the SNAPIN DLL
  2. //
  3. #if !defined(AFX_SNAPIN_H__7D4A6850_9056_11D2_BD45_0000F87A3912__INCLUDED_)
  4. #define AFX_SNAPIN_H__7D4A6850_9056_11D2_BD45_0000F87A3912__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #ifndef __AFXWIN_H__
  9. #error include 'stdafx.h' before including this file for PCH
  10. #endif
  11. #include "resource.h" // main symbols
  12. #include "..\HmSnapinRes\resource.h"
  13. #include "Constants.h"
  14. #include "ConnectionManager.h"
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CSnapInApp
  17. // See SnapIn.cpp for the implementation of this class
  18. //
  19. class CSnapInApp : public CWinApp
  20. {
  21. // Construction
  22. public:
  23. CSnapInApp();
  24. // Resource Dll Members
  25. public:
  26. bool LoadString(const CString& sFileName, UINT uiResId, CString& sResString);
  27. protected:
  28. bool LoadDefaultResourceDll();
  29. void UnloadDefaultResourceDll();
  30. HINSTANCE LoadResourceDll(const CString& sFileName);
  31. void UnloadResourceDlls();
  32. HINSTANCE m_hDefaultResourceDll;
  33. CMap<LPCTSTR,LPCTSTR,HINSTANCE,HINSTANCE> m_ResourceDllMap;
  34. // Help System Members
  35. protected:
  36. void SetHelpFilePath();
  37. // Directory Assistance Members
  38. public:
  39. CString GetSnapinDllDirectory();
  40. CString GetDefaultResDllDirectory();
  41. CString GetDefaultResDllPath();
  42. CString GetEnglishResDllPath();
  43. CString EscapeSpecialChars(CString &refString);
  44. CString UnEscapeSpecialChars(CString &refString);
  45. COleMessageFilter m_mfMyMessageFilter;
  46. // MFC Overrides
  47. public:
  48. BOOL ValidNamespace(const CString &refNamespace, const CString& sMachine);
  49. private:
  50. static CStringArray m_arrsNamespaces;
  51. void LoadNamespaceArray(const CString& sNamespace, const CString& sMachine);
  52. // ClassWizard generated virtual function overrides
  53. //{{AFX_VIRTUAL(CSnapInApp)
  54. public:
  55. virtual BOOL InitInstance();
  56. virtual int ExitInstance();
  57. //}}AFX_VIRTUAL
  58. //{{AFX_MSG(CSnapInApp)
  59. // NOTE - the ClassWizard will add and remove member functions here.
  60. // DO NOT EDIT what you see in these blocks of generated code !
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. };
  64. /////////////////////////////////////////////////////////////////////////////
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_SNAPIN_H__7D4A6850_9056_11D2_BD45_0000F87A3912__INCLUDED_)