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.

99 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. ctlobj.h
  5. Abstract:
  6. License controller object implementation.
  7. Author:
  8. Don Ryan (donryan) 27-Dec-1994
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _CTLOBJ_H_
  14. #define _CTLOBJ_H_
  15. class CController : public CCmdTarget
  16. {
  17. DECLARE_DYNCREATE(CController)
  18. private:
  19. LPVOID m_llsHandle;
  20. BOOL m_bIsConnected;
  21. CObArray m_productArray;
  22. CObArray m_licenseArray;
  23. CObArray m_mappingArray;
  24. CObArray m_userArray;
  25. BOOL m_bProductsRefreshed;
  26. BOOL m_bLicensesRefreshed;
  27. BOOL m_bMappingsRefreshed;
  28. BOOL m_bUsersRefreshed;
  29. public:
  30. CString m_strName;
  31. CString m_strActiveDomainName; // blah!
  32. CProducts* m_pProducts;
  33. CLicenses* m_pLicenses;
  34. CMappings* m_pMappings;
  35. CUsers* m_pUsers;
  36. public:
  37. CController();
  38. virtual ~CController();
  39. BOOL RefreshProducts();
  40. BOOL RefreshUsers();
  41. BOOL RefreshMappings();
  42. BOOL RefreshLicenses();
  43. void ResetProducts();
  44. void ResetUsers();
  45. void ResetMappings();
  46. void ResetLicenses();
  47. PVOID GetLlsHandle();
  48. BSTR GetActiveDomainName();
  49. //{{AFX_VIRTUAL(CController)
  50. //}}AFX_VIRTUAL
  51. //{{AFX_DISPATCH(CController)
  52. afx_msg BSTR GetName();
  53. afx_msg LPDISPATCH GetApplication();
  54. afx_msg LPDISPATCH GetParent();
  55. afx_msg BOOL IsConnected();
  56. afx_msg BOOL Connect(const VARIANT FAR& start);
  57. afx_msg void Disconnect();
  58. afx_msg void Refresh();
  59. afx_msg LPDISPATCH GetMappings(const VARIANT FAR& index);
  60. afx_msg LPDISPATCH GetUsers(const VARIANT FAR& index);
  61. afx_msg LPDISPATCH GetLicenses(const VARIANT FAR& index);
  62. afx_msg LPDISPATCH GetProducts(const VARIANT FAR& index);
  63. //}}AFX_DISPATCH
  64. DECLARE_DISPATCH_MAP()
  65. protected:
  66. //{{AFX_MSG(CController)
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. inline LPVOID CController::GetLlsHandle()
  71. { return m_llsHandle; }
  72. #endif // _CTLOBJ_H_