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.

78 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. licobj.h
  5. Abstract:
  6. License object implementation.
  7. Author:
  8. Don Ryan (donryan) 04-Jan-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _LICOBJ_H_
  14. #define _LICOBJ_H_
  15. class CLicense : public CCmdTarget
  16. {
  17. DECLARE_DYNCREATE(CLicense)
  18. private:
  19. CCmdTarget* m_pParent;
  20. public:
  21. CString m_strDate;
  22. CString m_strUser;
  23. CString m_strProduct;
  24. CString m_strDescription;
  25. long m_lDate;
  26. long m_lQuantity;
  27. public:
  28. CLicense(
  29. CCmdTarget* pParent = NULL,
  30. LPCTSTR pProduct = NULL,
  31. LPCTSTR pUser = NULL,
  32. long lDate = 0,
  33. long lQuantity = 0,
  34. LPCTSTR pDescription = NULL
  35. );
  36. virtual ~CLicense();
  37. BSTR GetDateString();
  38. //{{AFX_VIRTUAL(CLicense)
  39. public:
  40. virtual void OnFinalRelease();
  41. //}}AFX_VIRTUAL
  42. //{{AFX_DISPATCH(CLicense)
  43. afx_msg LPDISPATCH GetApplication();
  44. afx_msg LPDISPATCH GetParent();
  45. afx_msg DATE GetDate();
  46. afx_msg BSTR GetDescription();
  47. afx_msg BSTR GetProductName();
  48. afx_msg long GetQuantity();
  49. afx_msg BSTR GetUserName();
  50. //}}AFX_DISPATCH
  51. DECLARE_DISPATCH_MAP()
  52. protected:
  53. //{{AFX_MSG(CLicense)
  54. // NOTE - the ClassWizard will add and remove member functions here.
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. #endif // _LICOBJ_H_