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.

69 lines
1.5 KiB

  1. /*
  2. File netmanp.h
  3. Provides interface for obtaining guid to friendly name mappings.
  4. Paul Mayfield, 3/12/98
  5. */
  6. #ifndef __mpradmin_netmanp_h
  7. #define __mpradmin_netmanp_h
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. //
  12. // Definitions for possible hardware states for lan adapters.
  13. // They corrospond to CM_PROB_* values.
  14. //
  15. #define EL_STATUS_OK 0x0
  16. #define EL_STATUS_NOT_THERE 0x1
  17. #define EL_STATUS_MOVED 0x2
  18. #define EL_STATUS_DISABLED 0x3
  19. #define EL_STATUS_HWDISABLED 0x4
  20. #define EL_STATUS_OTHER 0x5
  21. // Defines a structure that associates a guid with an
  22. // friendly interface name
  23. typedef struct _EL_ADAPTER_INFO
  24. {
  25. BSTR pszName;
  26. GUID guid;
  27. DWORD dwStatus; // See EL_STATUS_*
  28. } EL_ADAPTER_INFO;
  29. //
  30. // Obtains the map of connection names to guids on the given server
  31. // from its netman service.
  32. //
  33. // Parameters:
  34. // pszServer: Server on which to obtain map (NULL = local)
  35. // ppMap: Returns array of EL_ADAPTER_INFO's
  36. // lpdwCount Returns number of elements read into ppMap
  37. // pbNt40: Returns whether server is nt4 installation
  38. //
  39. DWORD
  40. ElEnumLanAdapters(
  41. IN PWCHAR pszServer,
  42. OUT EL_ADAPTER_INFO ** ppMap,
  43. OUT LPDWORD lpdwNumNodes,
  44. OUT PBOOL pbNt40 );
  45. //
  46. // Cleans up the buffer returned from ElEnumLanAdapters
  47. //
  48. DWORD
  49. ElCleanup(
  50. IN EL_ADAPTER_INFO * pMap,
  51. IN DWORD dwCount );
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif