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.

135 lines
3.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: O N C O M M A N D _ D B G . C P P
  7. //
  8. // Contents: Debug command handlers
  9. //
  10. // Notes:
  11. //
  12. // Author: jeffspr 23 Jul 1998
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "pch.h"
  16. #pragma hdrstop
  17. #include "oncommand.h"
  18. #if DBG // Debug menu commands
  19. #include "oncommand_dbg.h" //
  20. #endif
  21. #include "shutil.h"
  22. #include <upsres.h>
  23. //---[ Globals ]--------------------------------------------------------------
  24. // Used as the caption for all debugging message boxes
  25. //
  26. const WCHAR c_szDebugCaption[] = L"UPnP Device Config Debugging";
  27. //+---------------------------------------------------------------------------
  28. //
  29. // Function: HrOnCommandDebugTracing
  30. //
  31. // Purpose: Command handler for CMIDM_DEBUG_TRACING. It will eventually
  32. // bring up the tracing change dialog.
  33. //
  34. // Arguments:
  35. // apidl [] Ignored
  36. // cidl [] Ignored
  37. // hwndOwner [] Ignored
  38. // psf [] Ignored
  39. //
  40. // Returns:
  41. //
  42. // Author: jeffspr 24 Aug 1998
  43. //
  44. // Notes:
  45. //
  46. HRESULT HrOnCommandDebugTracing(
  47. LPITEMIDLIST * apidl,
  48. ULONG cidl,
  49. HWND hwndOwner,
  50. LPSHELLFOLDER psf)
  51. {
  52. HRESULT hr = S_OK;
  53. // hr = HrOpenTracingUI(hwndOwner);
  54. TraceHr(ttidShellFolder, FAL, hr, FALSE, "HrOnCommandDebugTracing");
  55. return hr;
  56. }
  57. //+---------------------------------------------------------------------------
  58. //
  59. // Function: HrOnCommandDebugRefresh
  60. //
  61. // Purpose: Test the flushing of the connection cache (does the folder
  62. // still work properly)? This will simulate the current response
  63. // to an external refresh request
  64. //
  65. // Arguments:
  66. // apidl [in] Ignored
  67. // cidl [in] Ignored
  68. // hwndOwner [in] Ignored
  69. // psf [in] Ignored
  70. //
  71. // Returns:
  72. //
  73. // Author: jeffspr 17 Nov 1998
  74. //
  75. // Notes:
  76. //
  77. HRESULT HrOnCommandDebugRefresh(
  78. LPITEMIDLIST * apidl,
  79. ULONG cidl,
  80. HWND hwndOwner,
  81. LPSHELLFOLDER psf)
  82. {
  83. HRESULT hr = S_OK;
  84. // Force a refresh without having the window to work with.
  85. //
  86. ForceRefresh(NULL);
  87. TraceHr(ttidShellFolder, FAL, hr, FALSE, "HrOnCommandDebugRefresh");
  88. return hr;
  89. }
  90. //+---------------------------------------------------------------------------
  91. //
  92. // Function: HrOnCommandDebugTestAsyncFind
  93. //
  94. // Purpose: Simple test of async find
  95. //
  96. // Arguments:
  97. // apidl []
  98. // cidl []
  99. // hwndOwner []
  100. // psf []
  101. //
  102. // Returns:
  103. //
  104. // Author: jeffspr 22 Nov 1999
  105. //
  106. // Notes:
  107. //
  108. HRESULT HrOnCommandDebugTestAsyncFind(
  109. LPITEMIDLIST * apidl,
  110. ULONG cidl,
  111. HWND hwndOwner,
  112. LPSHELLFOLDER psf)
  113. {
  114. HRESULT hr = S_OK;
  115. // hr = HrStartAsyncFind();
  116. TraceHr(ttidShellFolder, FAL, hr, FALSE, "HrOnCommandDebugTestAsyncFind");
  117. return hr;
  118. }