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.

86 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. rashndl.c
  5. Abstract:
  6. Handlers for ras commands
  7. Revision History:
  8. pmay
  9. --*/
  10. #include "precomp.h"
  11. #pragma hdrstop
  12. DWORD
  13. RasDumpScriptHeader(
  14. IN HANDLE hFile)
  15. /*++
  16. Routine Description:
  17. Dumps the header of a script to the given file or to the
  18. screen if the file is NULL.
  19. --*/
  20. {
  21. DisplayMessage(g_hModule,
  22. MSG_RAS_SCRIPTHEADER);
  23. DisplayMessageT(DMP_RAS_PUSHD);
  24. return NO_ERROR;
  25. }
  26. DWORD
  27. RasDumpScriptFooter(
  28. IN HANDLE hFile)
  29. /*++
  30. Routine Description:
  31. Dumps the header of a script to the given file or to the
  32. screen if the file is NULL.
  33. --*/
  34. {
  35. DisplayMessageT(DMP_RAS_POPD);
  36. DisplayMessage(g_hModule,
  37. MSG_RAS_SCRIPTFOOTER);
  38. return NO_ERROR;
  39. }
  40. DWORD
  41. WINAPI
  42. RasDump(
  43. IN LPCWSTR pwszRouter,
  44. IN OUT LPWSTR *ppwcArguments,
  45. IN DWORD dwArgCount,
  46. IN LPCVOID pvData
  47. )
  48. {
  49. // Now that we're all parsed, dump all the config
  50. //
  51. RasDumpScriptHeader( NULL );
  52. RasflagDumpConfig( NULL );
  53. DisplayMessageT(MSG_NEWLINE);
  54. UserDumpConfig( NULL );
  55. DisplayMessageT(MSG_NEWLINE);
  56. RasDumpScriptFooter( NULL );
  57. return NO_ERROR;
  58. }