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.

55 lines
1.4 KiB

  1. // devrmdlg.h : header file
  2. //
  3. /*++
  4. Copyright (C) Microsoft Corporation
  5. Module Name:
  6. devrmdlg.h
  7. Abstract:
  8. header file for devrmdlg.cpp
  9. Author:
  10. William Hsieh (williamh) created
  11. Revision History:
  12. --*/
  13. //
  14. // help topic ids
  15. //
  16. #define IDH_DISABLEHELP (DWORD(-1))
  17. #define idh_devmgr_confirmrremoval_listbox 210100 // Confirm Device Removal: "" (Static)
  18. #define idh_devmgr_confirmremoval_all 210110 // Confirm Device Removal: "Remove from &all configurations." (Button)
  19. #define idh_devmgr_confirmremoval_specific 210120 // Confirm Device Removal: "Remove from &specific configuration." (Button)
  20. #define idh_devmgr_confirmremoval_configuration 210130 // Confirm Device Removal: "" (ComboBox)
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CRemoveDevDlg dialog
  23. class CRemoveDevDlg : public CDialog
  24. {
  25. public:
  26. CRemoveDevDlg(CDevice* pDevice)
  27. : CDialog(IDD_REMOVE_DEVICE),
  28. m_pDevice(pDevice)
  29. {}
  30. virtual BOOL OnInitDialog();
  31. virtual void OnCommand(WPARAM wParam, LPARAM lParam);
  32. virtual BOOL OnDestroy();
  33. virtual BOOL OnHelp(LPHELPINFO pHelpInfo);
  34. virtual BOOL OnContextMenu(HWND hWnd, WORD xPos, WORD yPos);
  35. private:
  36. void OnOk();
  37. CDevice* m_pDevice;
  38. BOOL IsRemoveSubtreeOk(CDevice* pDevice, PSP_REMOVEDEVICE_PARAMS prmdParams);
  39. };