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.

88 lines
2.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: D I A L U P U I . H
  7. //
  8. // Contents: Dial-up connection UI object.
  9. //
  10. // Notes:
  11. //
  12. // Author: shaunco 15 Oct 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include <netshell.h>
  17. #include "nsbase.h"
  18. #include "nsres.h"
  19. #include "rasui.h"
  20. class ATL_NO_VTABLE CDialupConnectionUi :
  21. public CComObjectRootEx <CComObjectThreadModel>,
  22. public CComCoClass <CDialupConnectionUi,
  23. &CLSID_DialupConnectionUi>,
  24. public CRasUiBase,
  25. public INetConnectionConnectUi,
  26. public INetConnectionPropertyUi2,
  27. public INetConnectionWizardUi
  28. {
  29. public:
  30. CDialupConnectionUi () : CRasUiBase () {m_dwRasWizType = RASWIZ_TYPE_DIALUP;};
  31. DECLARE_REGISTRY_RESOURCEID(IDR_DIALUP_UI)
  32. BEGIN_COM_MAP(CDialupConnectionUi)
  33. COM_INTERFACE_ENTRY(INetConnectionConnectUi)
  34. COM_INTERFACE_ENTRY(INetConnectionPropertyUi2)
  35. COM_INTERFACE_ENTRY(INetConnectionWizardUi)
  36. END_COM_MAP()
  37. // INetConnectionConnectUi
  38. STDMETHOD (SetConnection) (
  39. INetConnection* pCon);
  40. STDMETHOD (Connect) (
  41. HWND hwndParent,
  42. DWORD dwFlags);
  43. STDMETHOD (Disconnect) (
  44. HWND hwndParent,
  45. DWORD dwFlags);
  46. // INetConnectionPropertyUi2
  47. STDMETHOD (AddPages) (
  48. HWND hwndParent,
  49. LPFNADDPROPSHEETPAGE pfnAddPage,
  50. LPARAM lParam);
  51. STDMETHOD (GetIcon) (
  52. DWORD dwSize,
  53. HICON *phIcon );
  54. // INetConnectionWizardUi
  55. STDMETHOD (QueryMaxPageCount) (
  56. INetConnectionWizardUiContext* pContext,
  57. DWORD* pcMaxPages);
  58. STDMETHOD (AddPages) (
  59. INetConnectionWizardUiContext* pContext,
  60. LPFNADDPROPSHEETPAGE pfnAddPage,
  61. LPARAM lParam);
  62. STDMETHOD (GetNewConnectionInfo) (
  63. DWORD* pdwFlags,
  64. NETCON_MEDIATYPE* pMediaType);
  65. STDMETHOD (GetSuggestedConnectionName) (
  66. PWSTR* ppszwSuggestedName);
  67. STDMETHOD (SetConnectionName) (
  68. PCWSTR pszwConnectionName);
  69. STDMETHOD (GetNewConnection) (
  70. INetConnection** ppCon);
  71. };