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.

106 lines
3.1 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. paper.cpp
  5. Abstract:
  6. Remove licenses dialog prototype.
  7. Author:
  8. Jeff Parham (jeffparh) 13-Dec-1995
  9. Revision History:
  10. --*/
  11. class CCertRemoveSelectDlg : public CDialog
  12. {
  13. public:
  14. CCertRemoveSelectDlg(CWnd* pParent = NULL); // standard constructor
  15. ~CCertRemoveSelectDlg();
  16. void UpdateSpinControlRange();
  17. BOOL LoadImages();
  18. // Dialog Data
  19. //{{AFX_DATA(CCertRemoveSelectDlg)
  20. enum { IDD = IDD_CERT_REMOVE_SELECT };
  21. CSpinButtonCtrl m_spinLicenses;
  22. CListCtrl m_listCertificates;
  23. int m_nLicenses;
  24. //}}AFX_DATA
  25. CObArray m_licenseArray;
  26. LLS_HANDLE m_hLls;
  27. BOOL m_bLicensesRefreshed;
  28. CString m_strSourceToUse;
  29. CString m_strProductName;
  30. CString m_strServerName;
  31. CString m_strVendor;
  32. CImageList m_smallImages;
  33. DWORD m_dwRemoveFlags;
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CCertRemoveSelectDlg)
  37. public:
  38. virtual void WinHelp(DWORD dwData, UINT nCmd = HELP_CONTEXT);
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. //}}AFX_VIRTUAL
  42. public:
  43. DWORD CertificateRemove( LPCSTR pszServerName, LPCSTR pszProductName, LPCSTR pszVendor, DWORD dwFlags, LPCSTR pszSourceToUse );
  44. void ResetLicenses();
  45. BOOL RefreshLicenses();
  46. BOOL RefreshCertificateList();
  47. DWORD RemoveSelectedCertificate();
  48. BOOL ConnectServer();
  49. NTSTATUS ConnectTo( LPTSTR pszServerName, PLLS_HANDLE phLls );
  50. // Implementation
  51. protected:
  52. // Generated message map functions
  53. //{{AFX_MSG(CCertRemoveSelectDlg)
  54. afx_msg void OnHelp();
  55. afx_msg void OnColumnClickCertificateList(NMHDR* pNMHDR, LRESULT* pResult);
  56. afx_msg void OnGetDispInfoCertificateList(NMHDR* pNMHDR, LRESULT* pResult);
  57. afx_msg void OnDeltaPosSpinLicenses(NMHDR* pNMHDR, LRESULT* pResult);
  58. virtual void OnOK();
  59. virtual BOOL OnInitDialog();
  60. afx_msg void OnDblClkCertificateList(NMHDR* pNMHDR, LRESULT* pResult);
  61. afx_msg void OnReturnCertificateList(NMHDR* pNMHDR, LRESULT* pResult);
  62. afx_msg void OnDestroy();
  63. afx_msg void OnClickCertificateList(NMHDR* pNMHDR, LRESULT* pResult);
  64. afx_msg void OnKeyDownCertificateList(NMHDR* pNMHDR, LRESULT* pResult);
  65. afx_msg void OnRefresh();
  66. afx_msg LRESULT OnHelpCmd( WPARAM , LPARAM );
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. #define LVID_REMOVE_SERIAL_NUMBER 0
  71. #define LVID_REMOVE_PRODUCT_NAME 1
  72. #define LVID_REMOVE_LICENSE_MODE 2
  73. #define LVID_REMOVE_NUM_LICENSES 3
  74. #define LVID_REMOVE_SOURCE 4
  75. #define LVID_REMOVE_TOTAL_COLUMNS 5
  76. #define LVCX_REMOVE_SERIAL_NUMBER 20
  77. #define LVCX_REMOVE_PRODUCT_NAME 35
  78. #define LVCX_REMOVE_LICENSE_MODE 16
  79. #define LVCX_REMOVE_NUM_LICENSES 10
  80. #define LVCX_REMOVE_SOURCE -1
  81. int CALLBACK CompareLicenses(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);