Source code of Windows XP (NT5)
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.

112 lines
2.4 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation, 1997 - 1999
  4. Module Name:
  5. ResolveDNSName.h
  6. Abstract:
  7. Header file for the CResolveDNSNameDialog class.
  8. See CResolveDNSNameDialog.cpp for implementation.
  9. Author:
  10. Michael A. Maguire 01/15/98
  11. Revision History:
  12. mmaguire 01/15/98 - created
  13. --*/
  14. //////////////////////////////////////////////////////////////////////////////
  15. #if !defined(_IAS_RESOLVE_DNS_NAME_DIALOG_H_)
  16. #define _IAS_RESOLVE_DNS_NAME_DIALOG_H_
  17. //////////////////////////////////////////////////////////////////////////////
  18. // BEGIN INCLUDES
  19. //
  20. // where we can find what this class derives from:
  21. //
  22. #include "Dialog.h"
  23. //
  24. //
  25. // where we can find what this class has or uses:
  26. //
  27. //
  28. // END INCLUDES
  29. //////////////////////////////////////////////////////////////////////////////
  30. class CResolveDNSNameDialog;
  31. typedef CIASDialog<CResolveDNSNameDialog,FALSE> CResolveDNSNameDialogFALSE;
  32. class CResolveDNSNameDialog : public CIASDialog<CResolveDNSNameDialog, FALSE>
  33. {
  34. public:
  35. // This is the ID of the dialog resource we want for this class.
  36. // An enum is used here because the correct value of
  37. // IDD must be initialized before the base class's constructor is called
  38. enum { IDD = IDD_RESOLVE_DNS_NAME };
  39. BEGIN_MSG_MAP(CResolveDNSNameDialog)
  40. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  41. COMMAND_ID_HANDLER( IDOK, OnOK )
  42. COMMAND_ID_HANDLER( IDCANCEL, OnCancel )
  43. COMMAND_ID_HANDLER( IDC_BUTTON_RESOLVE_DNS_NAME__RESOLVE, OnResolve )
  44. // CHAIN_MSG_MAP(CIASDialog<CResolveDNSNameDialog, FALSE > ) // Second template parameter causes preprocessor grief.
  45. CHAIN_MSG_MAP(CResolveDNSNameDialogFALSE )
  46. END_MSG_MAP()
  47. CResolveDNSNameDialog();
  48. // Must call after you create, before you display.
  49. HRESULT SetAddress( BSTR *bstrAddress );
  50. LRESULT OnInitDialog(
  51. UINT uMsg
  52. , WPARAM wParam
  53. , LPARAM lParam
  54. , BOOL& bHandled
  55. );
  56. LRESULT OnResolve(
  57. UINT uMsg
  58. , WPARAM wParam
  59. , HWND hwnd
  60. , BOOL& bHandled
  61. );
  62. LRESULT OnOK(
  63. UINT uMsg
  64. , WPARAM wParam
  65. , HWND hwnd
  66. , BOOL& bHandled
  67. );
  68. LRESULT OnCancel(
  69. UINT uMsg
  70. , WPARAM wParam
  71. , HWND hwnd
  72. , BOOL& bHandled
  73. );
  74. HRESULT GetHelpPath( LPTSTR szHelpPath );
  75. private:
  76. BSTR *m_pbstrAddress;
  77. int AddIPAddressesToComboBox( HWND hWndComboBox, LPCTSTR szHostName );
  78. };
  79. #endif // _IAS_RESOLVE_DNS_NAME_DIALOG_H_