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.

161 lines
2.6 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1997 - 1997
  3. All rights reserved.
  4. Module Name:
  5. driverdt.hxx
  6. Abstract:
  7. Driver details header.
  8. Author:
  9. Steve Kiraly (steveKi) 23-Jan-1997
  10. Revision History:
  11. --*/
  12. #ifndef _DRIVERDT_HXX
  13. #define _DRIVERDT_HXX
  14. /********************************************************************
  15. Server Driver Details Dialog.
  16. ********************************************************************/
  17. class TDriverDetails : public MGenericDialog {
  18. SIGNATURE( 'stdt' )
  19. public:
  20. enum {
  21. kHeaderMax = 2,
  22. kDefaultHeaderWidth = 40,
  23. };
  24. enum {
  25. kDescriptionColumn,
  26. kFileColumn,
  27. kMaxColumns,
  28. };
  29. TDriverDetails(
  30. IN HWND hWnd,
  31. IN TDriverInfo *pDriverInfo
  32. );
  33. ~TDriverDetails(
  34. VOID
  35. );
  36. BOOL
  37. bValid(
  38. VOID
  39. );
  40. BOOL
  41. bDoModal(
  42. VOID
  43. );
  44. private:
  45. //
  46. // Structure for sorting the driver detail list view.
  47. //
  48. struct DetailData {
  49. TString strDescription;
  50. TString strFileName;
  51. };
  52. //
  53. // Assignment and copying are not defined
  54. //
  55. TDriverDetails &
  56. operator =(
  57. const TDriverDetails &
  58. );
  59. TDriverDetails(
  60. const TDriverDetails &
  61. );
  62. BOOL
  63. bSetUI(
  64. VOID
  65. );
  66. BOOL
  67. bHandleMessage(
  68. IN UINT uMsg,
  69. IN WPARAM wParam,
  70. IN LPARAM lParam
  71. );
  72. BOOL
  73. bBuildListViewHeader(
  74. VOID
  75. );
  76. BOOL
  77. bAddListViewItem(
  78. IN UINT uDescription,
  79. IN LPCTSTR pszFileName,
  80. IN UINT *pcItems
  81. );
  82. BOOL
  83. bHandleProperties(
  84. VOID
  85. );
  86. INT
  87. iFindDescription(
  88. IN LPCTSTR pszDescription
  89. );
  90. BOOL
  91. bSortListView(
  92. IN LPARAM lParam
  93. );
  94. BOOL
  95. bHandleItemSelected(
  96. VOID
  97. ) const;
  98. static
  99. INT
  100. CALLBACK
  101. iCompareProc(
  102. IN LPARAM lParam1,
  103. IN LPARAM lParam2,
  104. IN LPARAM lParamSort
  105. );
  106. BOOL
  107. bDeleteDetailData(
  108. IN LPARAM lParam
  109. );
  110. VOID
  111. vDeleteItems(
  112. VOID
  113. );
  114. HWND _hWnd;
  115. HWND _hwndLV;
  116. BOOL _bValid;
  117. TDriverInfo *_pDriverInfo;
  118. TBitArray _ColumnSortState;
  119. UINT _uCurrentColumn;
  120. TString _strMultizInfo;
  121. };
  122. #endif