Leaked source code of windows server 2003
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.

115 lines
3.6 KiB

  1. /******************************************************************************
  2. Source File: MiniDriver Developer Studio.H
  3. This defines the main application class, and other relatively global data.
  4. Copyright (c) 1997 By Microsoft Corporation. All Rights Reserved.
  5. A Pretty Penny Enterprises Production.
  6. Change History:
  7. 02-03-1997 Bob_Kjelgaard@Prodigy.Net Created it.
  8. ******************************************************************************/
  9. #ifndef __AFXWIN_H__
  10. #error include 'stdafx.h' before including this file for PCH
  11. #endif
  12. #include "resource.h" // main symbols
  13. /******************************************************************************
  14. CMiniDriverStudio class
  15. This is the application class for this application. 'Nuff said?
  16. ******************************************************************************/
  17. class CMiniDriverStudio : public CWinApp {
  18. // Document templates for the various editors and error display windows
  19. CMultiDocTemplate *m_pcmdtGlyphMap, *m_pcmdtFont, *m_pcmdtModel,
  20. *m_pcmdtWorkspace, *m_pcmdtWSCheck, *m_pcmdtStringEditor,
  21. *m_pcmdtINFViewer, *m_pcmdtINFCheck ;
  22. CString m_strAppPath ; // Application path
  23. CStringArray m_csaGPDKeywordArray ; // Array of GPD keyword strings
  24. public:
  25. CMiniDriverStudio();
  26. bool m_bOSIsW2KPlus ; // True iff OS ver >= 5.0
  27. bool m_bExcludeBadCodePages ; // See CDefaultCodePageSel:OnSetActive()
  28. CMultiDocTemplate* GlyphMapTemplate() const { return m_pcmdtGlyphMap; }
  29. CMultiDocTemplate* FontTemplate() const { return m_pcmdtFont; }
  30. CMultiDocTemplate* GPDTemplate() const { return m_pcmdtModel; }
  31. CMultiDocTemplate* WSCheckTemplate() const { return m_pcmdtWSCheck; }
  32. CMultiDocTemplate* StringEditorTemplate() const { return m_pcmdtStringEditor; }
  33. CMultiDocTemplate* INFViewerTemplate() const { return m_pcmdtINFViewer; }
  34. CMultiDocTemplate* INFCheckTemplate() const { return m_pcmdtINFCheck; }
  35. CMultiDocTemplate* WorkspaceTemplate() const { return m_pcmdtWorkspace; }
  36. void SaveAppPath() ;
  37. CString GetAppPath() const { return m_strAppPath ; }
  38. CStringArray& GetGPDKeywordArray() { return m_csaGPDKeywordArray ; }
  39. // Overrides
  40. // ClassWizard generated virtual function overrides
  41. //{{AFX_VIRTUAL(CMiniDriverStudio)
  42. public:
  43. virtual BOOL InitInstance();
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. //{{AFX_MSG(CMiniDriverStudio)
  47. afx_msg void OnAppAbout();
  48. afx_msg void OnUpdateFileGeneratemaps(CCmdUI* pCmdUI);
  49. afx_msg void OnFileGeneratemaps();
  50. //}}AFX_MSG
  51. #if !defined(NOPOLLO)
  52. afx_msg void OnFileNew();
  53. #endif
  54. DECLARE_MESSAGE_MAP()
  55. private:
  56. void ShowTipAtStartup(void);
  57. private:
  58. void ShowTipOfTheDay(void);
  59. };
  60. // App access function(s)
  61. CMiniDriverStudio& ThisApp();
  62. CMultiDocTemplate* GlyphMapDocTemplate();
  63. CMultiDocTemplate* FontTemplate();
  64. CMultiDocTemplate* GPDTemplate();
  65. CMultiDocTemplate* WSCheckTemplate();
  66. CMultiDocTemplate* StringEditorTemplate();
  67. CMultiDocTemplate* INFViewerTemplate();
  68. CMultiDocTemplate* INFCheckTemplate();
  69. // Text File Loading (into a CStringArray) function
  70. BOOL LoadFile(LPCTSTR lpstrFile, CStringArray& csaContents);
  71. class CMDTCommandLineInfo : public CCommandLineInfo
  72. {
  73. // Construction
  74. public:
  75. CMDTCommandLineInfo() ;
  76. ~CMDTCommandLineInfo() ;
  77. // Implementation
  78. public:
  79. virtual void ParseParam(LPCTSTR lpszParam, BOOL bFlag, BOOL bLast) ;
  80. // Data
  81. public:
  82. bool m_bCheckOS ; // Check OS version >= 5 iff true
  83. bool m_bExcludeBadCodePages ; // See CDefaultCodePageSel:OnSetActive()
  84. } ;