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.

128 lines
2.6 KiB

  1. #define HANDLE_TRACKBAR(wparam, lparam) \
  2. SoftPCI_HandleTrackBar((HWND) lparam, LOWORD(wparam), HIWORD(wparam));
  3. #define HANDLE_SPINNER(wparam, lparam) \
  4. SoftPCI_HandleSpinnerControl((HWND) lparam, LOWORD(wparam), HIWORD(wparam));
  5. #define SoftPCI_DisableWindow(Wnd) \
  6. EnableWindow(Wnd, FALSE);
  7. #define SoftPCI_EnableWindow(Wnd) \
  8. EnableWindow(Wnd, TRUE);
  9. #define SoftPCI_HideWindow(Wnd) \
  10. ShowWindow(Wnd, SW_HIDE);
  11. #define SoftPCI_ShowWindow(Wnd) \
  12. ShowWindow(Wnd, SW_SHOW);
  13. #define SoftPCI_CheckDlgBox(WND) \
  14. SendMessage(WND, BM_SETCHECK, BST_CHECKED, 0);
  15. #define SoftPCI_UnCheckDlgBox(WND) \
  16. SendMessage(WND, BM_SETCHECK, BST_UNCHECKED, 0);
  17. #define SoftPCI_ResetTrackBar(TrackBar) \
  18. SendMessage(TrackBar, TBM_SETPOS, (WPARAM)TRUE, 0);
  19. #define SoftPCI_GetTrackBarPosition(Wnd) \
  20. SendMessage(Wnd, TBM_GETPOS, 0, 0);
  21. #define SoftPCI_SetSpinnerValue(Wnd, NewValue) \
  22. SendMessage(Wnd, UDM_SETPOS, 0, NewValue);
  23. #define SoftPCI_GetSpinnerValue(Wnd) \
  24. SendMessage(Wnd, UDM_GETPOS, 0, 0);
  25. #define SoftPCI_InitSpinnerControl(Wnd, LowerRange, UpperRange, DefaultValue) \
  26. SendMessage(Wnd, UDM_SETRANGE, (WPARAM)0, (LPARAM) MAKELONG((SHORT)UpperRange, (SHORT)LowerRange)); \
  27. SoftPCI_SetSpinnerValue(Wnd, DefaultValue);
  28. VOID
  29. SoftPCI_DlgOnCommand(
  30. IN HWND Wnd,
  31. IN INT ControlID,
  32. IN HWND ControlWnd,
  33. IN UINT NotificationCode
  34. );
  35. ULONG
  36. SoftPCI_GetPossibleDevNumMask(
  37. IN PPCI_DN ParentDn
  38. );
  39. VOID
  40. SoftPCI_DisplayDlgOptions(
  41. IN SOFTPCI_DEV_TYPE DevType
  42. );
  43. VOID
  44. SoftPCI_HandleCheckBox(
  45. IN HWND Wnd,
  46. IN INT ControlID,
  47. IN UINT NotifyCode
  48. );
  49. VOID
  50. SoftPCI_HandleDlgInstallDevice(
  51. IN HWND Wnd
  52. );
  53. VOID
  54. SoftPCI_HandleRadioButton(
  55. IN HWND Wnd,
  56. IN INT ControlID,
  57. IN UINT NotificationCode
  58. );
  59. VOID
  60. SoftPCI_HandleTrackBar(
  61. IN HWND Wnd,
  62. IN WORD NotificationCode,
  63. IN WORD CurrentPos
  64. );
  65. VOID
  66. SoftPCI_HandleSpinnerControl(
  67. IN HWND Wnd,
  68. IN WORD NotificationCode,
  69. IN WORD CurrentPos
  70. );
  71. VOID
  72. SoftPCI_InitializeBar(
  73. IN INT Bar
  74. );
  75. VOID
  76. SoftPCI_InitializeHotPlugControls(
  77. VOID
  78. );
  79. BOOL
  80. SoftPCI_GetAssociatedBarControl(
  81. IN INT ControlID,
  82. OUT INT *Bar
  83. );
  84. VOID
  85. SoftPCI_ResetLowerBars(
  86. IN INT Bar
  87. );
  88. VOID
  89. SoftPCI_ResetNewDevDlg(
  90. VOID
  91. );
  92. VOID
  93. SoftPCI_ShowCommonNewDevDlg(
  94. VOID
  95. );
  96. VOID
  97. SoftPCI_UpdateBarText(
  98. IN PWCHAR Buffer,
  99. IN ULONGLONG BarSize
  100. );