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.

45 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: S N E T C F G . H
  7. //
  8. // Contents: Sample code that demonstrates how to:
  9. // - find out if a component is installed
  10. // - install a net component
  11. // - install an OEM net component
  12. // - uninstall a net component
  13. // - enumerate net components
  14. // - enumerate net adapters using Setup API
  15. // - enumerate binding paths of a component
  16. //
  17. // Notes:
  18. //
  19. // Author: kumarp 26-March-98
  20. //
  21. //----------------------------------------------------------------------------
  22. #pragma once
  23. enum NetClass
  24. {
  25. NC_NetAdapter=0,
  26. NC_NetProtocol,
  27. NC_NetService,
  28. NC_NetClient,
  29. NC_Unknown
  30. };
  31. HRESULT FindIfComponentInstalled(IN PCWSTR szComponentId);
  32. HRESULT HrInstallNetComponent(IN PCWSTR szComponentId,
  33. IN enum NetClass nc,
  34. IN PCWSTR szSrcDir);
  35. HRESULT HrUninstallNetComponent(IN PCWSTR szComponentId);
  36. HRESULT HrShowNetAdapters();
  37. HRESULT HrShowNetComponents();
  38. HRESULT HrShowBindingPathsOfComponent(IN PCWSTR szComponentId);