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.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1999.
  5. //
  6. // File: P E R S I S T . H
  7. //
  8. // Contents: Module repsonsible for persistence of the network
  9. // configuration information.
  10. //
  11. // Notes:
  12. //
  13. // Author: shaunco 15 Jan 1999
  14. //
  15. //----------------------------------------------------------------------------
  16. #pragma once
  17. #include "netcfg.h"
  18. HRESULT
  19. HrLoadNetworkConfigurationFromBuffer (
  20. IN const BYTE* pbBuf,
  21. IN ULONG cbBuf,
  22. OUT CNetConfig* pNetConfig);
  23. HRESULT
  24. HrLoadNetworkConfigurationFromLegacy (
  25. OUT CNetConfig* pNetConfig);
  26. HRESULT
  27. HrLoadNetworkConfigurationFromRegistry (
  28. IN REGSAM samDesired,
  29. OUT CNetConfig* pNetConfig);
  30. HRESULT
  31. HrSaveNetworkConfigurationToBuffer (
  32. IN CNetConfig* pNetConfig,
  33. IN BYTE* pbBuf,
  34. OUT ULONG* pcbBuf);
  35. HRESULT
  36. HrSaveNetworkConfigurationToBufferWithAlloc (
  37. IN CNetConfig* pNetConfig,
  38. OUT BYTE** ppbBuf,
  39. OUT ULONG* pcbBuf);
  40. HRESULT
  41. HrSaveNetworkConfigurationToRegistry (
  42. IN CNetConfig* pNetConfig);