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.

43 lines
882 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1999.
  5. //
  6. // File: W S C F G . C P P
  7. //
  8. // Contents: Winsock configuration routines.
  9. //
  10. // Notes:
  11. //
  12. // Author: shaunco 15 Feb 1999
  13. //
  14. //----------------------------------------------------------------------------
  15. #include <pch.h>
  16. #pragma hdrstop
  17. #include "nceh.h"
  18. #include "wscfg.h"
  19. extern "C"
  20. {
  21. #include <wsasetup.h>
  22. }
  23. HRESULT
  24. HrMigrateWinsockConfiguration (
  25. VOID)
  26. {
  27. HRESULT hr;
  28. NC_TRY
  29. {
  30. WSA_SETUP_DISPOSITION Disposition;
  31. DWORD dwErr = MigrateWinsockConfiguration (&Disposition, NULL, 0);
  32. hr = HRESULT_FROM_WIN32(dwErr);
  33. }
  34. NC_CATCH_ALL
  35. {
  36. hr = E_UNEXPECTED;
  37. }
  38. TraceHr (ttidError, FAL, hr, FALSE, "HrMigrateWinsockConfiguration");
  39. return hr;
  40. }