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.

104 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. nlicdlg.h
  5. Abstract:
  6. New license dialog implementation.
  7. Author:
  8. Don Ryan (donryan) 02-Feb-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. Jeff Parham (jeffparh) 14-Dec-1995
  13. Moved over from LLSMGR, added ability to purchase per server licenses,
  14. added license removal functionality.
  15. --*/
  16. #ifndef _NLICDLG_H_
  17. #define _NLICDLG_H_
  18. class CNewLicenseDialog : public CDialog
  19. {
  20. private:
  21. BOOL m_bAreCtrlsInitialized;
  22. public:
  23. CString m_strServerName;
  24. LLS_HANDLE m_hLls;
  25. LLS_HANDLE m_hEnterpriseLls;
  26. DWORD m_dwEnterFlags;
  27. //{{AFX_DATA(CNewLicenseDialog)
  28. enum { IDD = IDD_NEW_LICENSE };
  29. CEdit m_comEdit;
  30. CEdit m_licEdit;
  31. CSpinButtonCtrl m_spinCtrl;
  32. CComboBox m_productList;
  33. CString m_strComment;
  34. long m_nLicenses;
  35. long m_nLicensesMin;
  36. CString m_strProduct;
  37. int m_nLicenseMode;
  38. //}}AFX_DATA
  39. public:
  40. CNewLicenseDialog(CWnd* pParent = NULL);
  41. ~CNewLicenseDialog();
  42. // CCF API
  43. DWORD CertificateEnter( LPCSTR pszServerName, LPCSTR pszProductName, LPCSTR pszVendor, DWORD dwFlags );
  44. DWORD CertificateRemove( LPCSTR pszServerName, DWORD dwFlags, PLLS_LICENSE_INFO_1 pLicenseInfo );
  45. NTSTATUS ConnectTo( BOOL bUseEnterprise, LPTSTR pszServerName, PLLS_HANDLE phLls );
  46. BOOL ConnectServer();
  47. BOOL ConnectEnterprise();
  48. void GetProductList();
  49. NTSTATUS AddLicense();
  50. void AbortDialogIfNecessary();
  51. void AbortDialog();
  52. void InitCtrls();
  53. BOOL RefreshCtrls();
  54. BOOL IsQuantityValid();
  55. //{{AFX_VIRTUAL(CNewLicenseDialog)
  56. public:
  57. virtual void WinHelp(DWORD dwData, UINT nCmd = HELP_CONTEXT);
  58. protected:
  59. virtual void DoDataExchange(CDataExchange* pDX);
  60. //}}AFX_VIRTUAL
  61. protected:
  62. //{{AFX_MSG(CNewLicenseDialog)
  63. virtual void OnOK();
  64. virtual BOOL OnInitDialog();
  65. afx_msg void OnDestroy();
  66. afx_msg void OnDeltaPosSpin(NMHDR* pNMHDR, LRESULT* pResult);
  67. afx_msg void OnUpdateQuantity();
  68. afx_msg void OnHelp();
  69. afx_msg void OnPerSeat();
  70. afx_msg void OnPerServer();
  71. afx_msg LRESULT OnHelpCmd( WPARAM , LPARAM );
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. };
  75. #endif // _NLICDLG_H_