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.

65 lines
1.3 KiB

  1. /*
  2. File GuidMap.h
  3. Defines functions to map guid instances to descriptive names. This
  4. file will become obsolete when such Mike Miller adds this functionality
  5. to netcfg.
  6. Paul Mayfield, 8/25/97
  7. Copyright 1997, Microsoft Corporation.
  8. */
  9. #ifndef __guidmap_h
  10. #define __guidmap_h
  11. //
  12. // Initialize the guid map for the given server
  13. //
  14. DWORD
  15. GuidMapInit (
  16. IN PWCHAR pszServer,
  17. OUT HANDLE * phGuidMap);
  18. //
  19. // Cleans up resources obtained through GuidMapInit
  20. //
  21. DWORD
  22. GuidMapCleanup (
  23. IN HANDLE hGuidMap,
  24. IN BOOL bFree
  25. );
  26. //
  27. // Derive the friendly name from the guid name
  28. //
  29. DWORD
  30. GuidMapGetFriendlyName (
  31. IN SERVERCB* pserver,
  32. IN PWCHAR pszGuidName,
  33. IN DWORD dwBufferSize,
  34. OUT PWCHAR pszFriendlyName);
  35. //
  36. // Derive the guid name from the friendly name
  37. //
  38. DWORD
  39. GuidMapGetGuidName(
  40. IN SERVERCB* pserver,
  41. IN PWCHAR pszFriendlyName,
  42. IN DWORD dwBufferSize,
  43. OUT PWCHAR pszGuidName );
  44. //
  45. // States whether a mapping for the given guid name
  46. // exists without actually providing the friendly
  47. // name. This is more efficient than GuidMapGetFriendlyName
  48. // when the friendly name is not required.
  49. //
  50. DWORD
  51. GuidMapIsAdapterInstalled(
  52. IN HANDLE hGuidMap,
  53. IN PWCHAR pszGuidName,
  54. OUT PBOOL pfMappingExists);
  55. #endif