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.

107 lines
2.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: R A S U I . H
  7. //
  8. // Contents: Declares the base class used to implement the Dialup, Direct,
  9. // Internet, and Vpn connection UI objects.
  10. //
  11. // Notes:
  12. //
  13. // Author: shaunco 17 Dec 1997 (and that's the code complete date!)
  14. //
  15. //----------------------------------------------------------------------------
  16. #pragma once
  17. HRESULT
  18. HrCreateInboundConfigConnection (
  19. INetConnection** ppCon);
  20. class CRasUiBase
  21. {
  22. protected:
  23. // This is our connection given to us via the SetConnection method.
  24. //
  25. INetConnection* m_pCon;
  26. // This is the name of the connection told to us via SetConnectionName.
  27. // It is used subsequently during GetNewConnection to name the entry.
  28. //
  29. tstring m_strConnectionName;
  30. // These structures are used to allow the property UI to be displayed.
  31. // Since our call to RasEntryDlg returns before the shell displays the UI,
  32. // we have to keep the memory that will be referenced by the property
  33. // pages valid.
  34. //
  35. RASCON_INFO m_RasConInfo;
  36. RASENTRYDLG m_RasEntryDlg;
  37. RASEDSHELLOWNEDR2 m_ShellCtx;
  38. // This member defines the type of connection that is subclassed off of
  39. // this base. It is used to inform rasdlg.dll as to whether this is a
  40. // dialup, direct, or incoming connection
  41. //
  42. DWORD m_dwRasWizType;
  43. protected:
  44. CRasUiBase ();
  45. ~CRasUiBase ();
  46. HRESULT
  47. HrSetConnection (
  48. IN INetConnection* pCon,
  49. IN CComObjectRootEx <CComObjectThreadModel>* pObj);
  50. HRESULT
  51. HrConnect (
  52. IN HWND hwndParent,
  53. IN DWORD dwFlags,
  54. IN CComObjectRootEx <CComObjectThreadModel>* pObj,
  55. IN IUnknown* punk);
  56. HRESULT
  57. HrDisconnect (
  58. IN HWND hwndParent,
  59. IN DWORD dwFlags);
  60. HRESULT
  61. HrAddPropertyPages (
  62. IN HWND hwndParent,
  63. IN LPFNADDPROPSHEETPAGE pfnAddPage,
  64. IN LPARAM lParam);
  65. HRESULT
  66. HrQueryMaxPageCount (
  67. IN INetConnectionWizardUiContext* pContext,
  68. OUT DWORD* pcMaxPages);
  69. HRESULT
  70. HrAddWizardPages (
  71. IN INetConnectionWizardUiContext* pContext,
  72. IN LPFNADDPROPSHEETPAGE pfnAddPage,
  73. IN LPARAM lParam,
  74. IN DWORD dwFlags);
  75. HRESULT
  76. HrGetSuggestedConnectionName (
  77. OUT PWSTR* ppszwSuggestedName);
  78. HRESULT
  79. HrGetNewConnectionInfo (
  80. OUT DWORD* pdwFlags);
  81. HRESULT
  82. HrSetConnectionName (
  83. IN PCWSTR pszwConnectionName);
  84. HRESULT
  85. HrGetNewConnection (
  86. OUT INetConnection** ppCon);
  87. };