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.

51 lines
1.3 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to
  4. // existing Microsoft documentation.
  5. //
  6. //
  7. //
  8. //
  9. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  10. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  11. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  12. // PURPOSE.
  13. //
  14. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  15. //
  16. //
  17. //
  18. //==============================================================;
  19. #include "StatNode.h"
  20. const GUID CStaticNode::thisGuid = { 0x2974380c, 0x4c4b, 0x11d2, { 0x89, 0xd8, 0x0, 0x0, 0x21, 0x47, 0x31, 0x28 } };
  21. //==============================================================
  22. //
  23. // CStaticNode implementation
  24. //
  25. //
  26. CStaticNode::CStaticNode()
  27. {
  28. }
  29. CStaticNode::~CStaticNode()
  30. {
  31. }
  32. HRESULT CStaticNode::OnShowContextHelp(IDisplayHelp *pDisplayHelp, LPOLESTR helpFile)
  33. {
  34. WCHAR topicName[MAX_PATH];
  35. wcscpy(topicName, helpFile);
  36. // we should read this from a resource file
  37. wcscat(topicName, L"::/default.htm");
  38. LPOLESTR pszTopic = static_cast<LPOLESTR>(CoTaskMemAlloc((wcslen(topicName) + 1) * sizeof(WCHAR)));
  39. wcscpy(pszTopic, topicName);
  40. return pDisplayHelp->ShowTopic(pszTopic);
  41. }