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.

129 lines
3.2 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. nspatalk.h
  5. Abstract:
  6. Contains support for the winsock 1.x Name Space Provider for Appletalk.
  7. Author:
  8. Sue Adams (suea) 10-Mar-1995
  9. Revision History:
  10. --*/
  11. #define UNICODE
  12. //
  13. // MappingTriple structures and associated data for Appletalk
  14. //
  15. #define PMDL PVOID // AtalkTdi.h uses PMDL
  16. #include <nt.h>
  17. #include <ntrtl.h>
  18. #include <nturtl.h>
  19. #include <windef.h>
  20. #include <winbase.h>
  21. #include <tdi.h>
  22. #include <winsock.h>
  23. #include <atalkwsh.h>
  24. #include <nspapi.h>
  25. #include <nspapip.h>
  26. #include <wsahelp.h>
  27. #include <wshatalk.h>
  28. #define DLL_VERSION 1
  29. #define WSOCK_VER_REQD 0x0101
  30. #define ZIP_NAME L"ZIP"
  31. #define RTMP_NAME L"RTMP"
  32. #define PAP_NAME L"PAP"
  33. #define ADSP_NAME L"ADSP"
  34. INT
  35. NbpGetAddressByName(
  36. IN LPGUID lpServiceType,
  37. IN LPWSTR lpServiceName,
  38. IN LPDWORD lpdwProtocols,
  39. IN DWORD dwResolution,
  40. IN OUT LPVOID lpCsAddrBuffer,
  41. IN OUT LPDWORD lpdwBufferLength,
  42. IN OUT LPWSTR lpAliasBuffer,
  43. IN OUT LPDWORD lpdwAliasBufferLength,
  44. IN HANDLE hCancellationEvent
  45. );
  46. NTSTATUS
  47. NbpSetService (
  48. IN DWORD dwOperation,
  49. IN DWORD dwFlags,
  50. IN BOOL fUnicodeBlob,
  51. IN LPSERVICE_INFO lpServiceInfo
  52. );
  53. NTSTATUS
  54. GetNameInNbpFormat(
  55. IN LPGUID pType,
  56. IN LPWSTR pObject,
  57. IN OUT PWSH_NBP_NAME pNbpName
  58. );
  59. NTSTATUS
  60. NbpLookupAddress(
  61. IN PWSH_NBP_NAME pNbpLookupName,
  62. IN DWORD nProt,
  63. IN OUT LPVOID lpCsAddrBuffer,
  64. IN OUT LPDWORD lpdwBufferLength,
  65. OUT LPDWORD lpcAddress
  66. );
  67. DWORD
  68. FillBufferWithCsAddr(
  69. IN PSOCKADDR_AT pAddress,
  70. IN DWORD nProt,
  71. IN OUT LPVOID lpCsAddrBuffer,
  72. IN OUT LPDWORD lpdwBufferLength,
  73. OUT LPDWORD pcAddress
  74. );
  75. DWORD
  76. NbpRegDeregService(
  77. IN DWORD dwOperation,
  78. IN PWSH_NBP_NAME pNbpName,
  79. IN PSOCKADDR_AT pSockAddr
  80. );
  81. //
  82. // Macros
  83. //
  84. #if DBG
  85. #define DBGPRINT(Fmt) \
  86. { \
  87. DbgPrint("WSHATALK: "); \
  88. DbgPrint Fmt; \
  89. }
  90. #define DBGBRK() \
  91. { \
  92. DbgBreakPoint(); \
  93. }
  94. #else
  95. #define DBGPRINT(Fmt)
  96. #define DBGBRK()
  97. #endif
  98.