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.

127 lines
3.0 KiB

  1. //++
  2. //
  3. // Copyright (C) Microsoft Corporation, 1987 - 1999
  4. //
  5. // Module Name:
  6. //
  7. // sample.c
  8. //
  9. // Abstract:
  10. //
  11. // Queries into network drivers
  12. //
  13. // Author:
  14. //
  15. // Anilth - 4-20-1998
  16. //
  17. // Environment:
  18. //
  19. // User mode only.
  20. // Contains NT-specific code.
  21. //
  22. // Revision History:
  23. //
  24. //--
  25. #include "precomp.h"
  26. HRESULT SamplePassTest( NETDIAG_PARAMS* pParams, NETDIAG_RESULT* pResults)
  27. {
  28. if (pParams->fReallyVerbose)
  29. {
  30. printf(" Performing the sample pass test... pass\n");
  31. }
  32. return S_OK;
  33. } /* END OF SamplePassTest() */
  34. /*!--------------------------------------------------------------------------
  35. SamplePassGlobalPrint
  36. -
  37. Author: KennT
  38. ---------------------------------------------------------------------------*/
  39. void SamplePassGlobalPrint( NETDIAG_PARAMS* pParams,
  40. NETDIAG_RESULT* pResults)
  41. {
  42. if (pParams->fVerbose)
  43. {
  44. printf(" Sample Pass Test : pass\n");
  45. }
  46. if (pParams->fReallyVerbose)
  47. {
  48. printf(" more text\n");
  49. }
  50. }
  51. /*!--------------------------------------------------------------------------
  52. SamplePassPerInterfacePrint
  53. -
  54. Author: KennT
  55. ---------------------------------------------------------------------------*/
  56. void SamplePassPerInterfacePrint( NETDIAG_PARAMS* pParams,
  57. NETDIAG_RESULT* pResults,
  58. INTERFACE_RESULT *pInterfaceResults)
  59. {
  60. // no per-interface results
  61. }
  62. /*!--------------------------------------------------------------------------
  63. SamplePassCleanup
  64. -
  65. Author: KennT
  66. ---------------------------------------------------------------------------*/
  67. void SamplePassCleanup( NETDIAG_PARAMS* pParams, NETDIAG_RESULT* pResults)
  68. {
  69. }
  70. HRESULT SampleFailTest( NETDIAG_PARAMS* pParams, NETDIAG_RESULT* pResults)
  71. {
  72. if (pParams->fReallyVerbose)
  73. {
  74. printf(" Performing the sample fail test... fail\n");
  75. }
  76. return S_FALSE;
  77. } /* END OF SampleFailTest() */
  78. /*!--------------------------------------------------------------------------
  79. SampleFailGlobalPrint
  80. -
  81. Author: KennT
  82. ---------------------------------------------------------------------------*/
  83. void SampleFailGlobalPrint( NETDIAG_PARAMS* pParams,
  84. NETDIAG_RESULT* pResults)
  85. {
  86. printf(" Sample Fail Test : fail\n");
  87. printf(" more text\n");
  88. }
  89. /*!--------------------------------------------------------------------------
  90. SampleFailPerInterfacePrint
  91. -
  92. Author: KennT
  93. ---------------------------------------------------------------------------*/
  94. void SampleFailPerInterfacePrint( NETDIAG_PARAMS* pParams,
  95. NETDIAG_RESULT* pResults,
  96. INTERFACE_RESULT *pInterfaceResults)
  97. {
  98. // no per-interface results
  99. }
  100. /*!--------------------------------------------------------------------------
  101. SampleFailCleanup
  102. -
  103. Author: KennT
  104. ---------------------------------------------------------------------------*/
  105. void SampleFailCleanup( NETDIAG_PARAMS* pParams, NETDIAG_RESULT* pResults)
  106. {
  107. }