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.

82 lines
1.6 KiB

  1. // LCWiz.h : main header file for the LCWIZ application
  2. //
  3. #ifndef __AFXWIN_H__
  4. #error include 'stdafx.h' before including this file for PCH
  5. #endif
  6. #ifndef __LCWIZ_H__
  7. #define __LCWIZ_H__
  8. #include <winreg.h>
  9. #include "resource.h" // main symbols
  10. typedef struct tagTREEINFO
  11. {
  12. HTREEITEM hTreeItem;
  13. DWORD dwBufSize;
  14. CObject* pTree;
  15. BOOL bExpand;
  16. }
  17. TREEINFO, *PTREEINFO;
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CLicCompWizApp:
  20. // See LCWiz.cpp for the implementation of this class
  21. //
  22. class CLicCompWizApp : public CWinApp
  23. {
  24. public:
  25. void OnWizard();
  26. CLicCompWizApp();
  27. ~CLicCompWizApp();
  28. void NotifyLicenseThread(BOOL bExit);
  29. void ExitThreads();
  30. // Data members
  31. public:
  32. CString m_strEnterprise;
  33. CWinThread* m_pLicenseThread;
  34. BOOL m_bExitLicenseThread;
  35. CEvent m_event;
  36. CString m_strDomain, m_strEnterpriseServer, m_strUser;
  37. int m_nRemote;
  38. protected:
  39. HANDLE m_hMutex;
  40. // Attributes
  41. public:
  42. inline int& IsRemote() {return m_nRemote;}
  43. protected:
  44. BOOL GetRegString(CString& strIn, UINT nSubKey, UINT nValue, HKEY hHive = HKEY_LOCAL_MACHINE);
  45. // Constants
  46. enum
  47. {
  48. BUFFER_SIZE = 256
  49. };
  50. // Overrides
  51. // ClassWizard generated virtual function overrides
  52. //{{AFX_VIRTUAL(CLicCompWizApp)
  53. public:
  54. virtual BOOL InitInstance();
  55. virtual int ExitInstance();
  56. //}}AFX_VIRTUAL
  57. // Implementation
  58. //{{AFX_MSG(CLicCompWizApp)
  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. #endif __LCWIZ_H__
  65. /////////////////////////////////////////////////////////////////////////////