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.

76 lines
1.9 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. Jeff Parham (jeffparh) 12-Nov-1995
  13. Copied from LLSMGR, converted to handle level 1 licenses,
  14. removed OLE support.
  15. --*/
  16. #ifndef _LICOBJ_H_
  17. #define _LICOBJ_H_
  18. class CLicense : public CObject
  19. {
  20. DECLARE_DYNCREATE(CLicense)
  21. public:
  22. CString m_strAdmin;
  23. CString m_strProduct;
  24. CString m_strVendor;
  25. CString m_strDescription;
  26. CString m_strSource;
  27. long m_lQuantity;
  28. DWORD m_dwAllowedModes;
  29. DWORD m_dwCertificateID;
  30. DWORD m_dwPurchaseDate;
  31. DWORD m_dwExpirationDate;
  32. DWORD m_dwMaxQuantity;
  33. DWORD m_adwSecrets[ LLS_NUM_SECRETS ];
  34. // cache for derived values
  35. CString m_strSourceDisplayName;
  36. CString m_strAllowedModes;
  37. public:
  38. CLicense( LPCTSTR pProduct = NULL,
  39. LPCTSTR pVendor = NULL,
  40. LPCTSTR pAdmin = NULL,
  41. DWORD dwPurchaseDate = 0,
  42. long lQuantity = 0,
  43. LPCTSTR pDescription = NULL,
  44. DWORD dwAllowedModes = LLS_LICENSE_MODE_ALLOW_PER_SEAT,
  45. DWORD dwCertificateID = 0,
  46. LPCTSTR pSource = TEXT("None"),
  47. DWORD dwExpirationDate = 0,
  48. DWORD dwMaxQuantity = 0,
  49. LPDWORD pdwSecrets = NULL );
  50. CString GetSourceDisplayName();
  51. CString GetAllowedModesString();
  52. DWORD CreateLicenseInfo( PLLS_LICENSE_INFO_1 pLicInfo );
  53. void DestroyLicenseInfo( PLLS_LICENSE_INFO_1 pLicInfo );
  54. };
  55. #endif // _LICOBJ_H_