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.

102 lines
2.0 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1997 - 1999
  3. Module Name:
  4. DfsShell.cpp
  5. Abstract:
  6. This is the implementation file for Dfs Shell Extension object which implements
  7. IShellIExtInit and IShellPropSheetExt.
  8. Author:
  9. Constancio Fernandes (ferns@qspl.stpp.soft.net) 12-Jan-1998
  10. Environment:
  11. NT only.
  12. */
  13. #include "stdafx.h"
  14. #include "ctshlext.h"
  15. #include "genpage.h"
  16. /*----------------------------------------------------------------------
  17. IShellExtInit Implementation.
  18. ------------------------------------------------------------------------*/
  19. STDMETHODIMP CCertTypeShlExt::Initialize
  20. (
  21. IN LPCITEMIDLIST pidlFolder, // Points to an ITEMIDLIST structure
  22. IN LPDATAOBJECT pDataObj, // Points to an IDataObject interface
  23. IN HKEY hkeyProgID // Registry key for the file object or folder type
  24. )
  25. {
  26. CString cstrFullText, cstrTitle;
  27. cstrTitle.LoadString(IDS_POLICYSETTINGS);
  28. cstrFullText.LoadString(IDS_ERROR_WIN2000_AD_LAUNCH_NOT_SUPPORTED);
  29. ::MessageBoxW(NULL, cstrFullText, cstrTitle, MB_OK | MB_ICONINFORMATION);
  30. return S_OK;
  31. }
  32. STDMETHODIMP CCertTypeShlExt::AddPages
  33. (
  34. IN LPFNADDPROPSHEETPAGE lpfnAddPage,
  35. IN LPARAM lParam
  36. )
  37. {
  38. return S_OK;
  39. }
  40. STDMETHODIMP CCertTypeShlExt::ReplacePage
  41. (
  42. IN UINT uPageID,
  43. IN LPFNADDPROPSHEETPAGE lpfnReplaceWith,
  44. IN LPARAM lParam
  45. )
  46. {
  47. return E_FAIL;
  48. }
  49. // IContextMenu methods
  50. STDMETHODIMP CCertTypeShlExt::GetCommandString
  51. (
  52. UINT_PTR idCmd,
  53. UINT uFlags,
  54. UINT *pwReserved,
  55. LPSTR pszName,
  56. UINT cchMax
  57. )
  58. {
  59. return E_NOTIMPL;
  60. }
  61. STDMETHODIMP CCertTypeShlExt::InvokeCommand
  62. (
  63. LPCMINVOKECOMMANDINFO lpici
  64. )
  65. {
  66. return E_NOTIMPL;
  67. }
  68. STDMETHODIMP CCertTypeShlExt::QueryContextMenu
  69. (
  70. HMENU hmenu,
  71. UINT indexMenu,
  72. UINT idCmdFirst,
  73. UINT idCmdLast,
  74. UINT uFlags
  75. )
  76. {
  77. return S_OK;
  78. }