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.

55 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2000.
  5. //
  6. // File: N C U T I L . H
  7. //
  8. // Contents: INetCfg utilities. Some of these could to be moved into
  9. // nccommon\src\ncnetcfg.cpp.
  10. //
  11. // Notes:
  12. //
  13. // Author: shaunco 28 Mar 1997
  14. //
  15. //----------------------------------------------------------------------------
  16. #pragma once
  17. #include "ncstring.h"
  18. #include "netcfgx.h"
  19. inline
  20. BOOL
  21. FIsAdapterInstalled (
  22. INetCfg* pnc,
  23. PCWSTR pszComponentId)
  24. {
  25. return (S_OK == pnc->FindComponent (pszComponentId, NULL));
  26. }
  27. HRESULT
  28. HrEnsureZeroOrOneAdapter (
  29. INetCfg* pnc,
  30. PCWSTR pszComponentId,
  31. DWORD dwFlags);
  32. HRESULT
  33. HrGetInstanceGuidAsString (
  34. INetCfgComponent* pncc,
  35. PWSTR pszGuid,
  36. INT cchGuid);
  37. HRESULT
  38. HrMapComponentIdToDword (
  39. INetCfgComponent* pncc,
  40. const MAP_SZ_DWORD* aMapSzDword,
  41. UINT cMapSzDword,
  42. DWORD* pdwValue);
  43. HRESULT
  44. HrOpenComponentParamKey (
  45. INetCfg* pnc,
  46. const GUID& rguidClass,
  47. PCWSTR pszComponentId,
  48. HKEY* phkey);