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.

64 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. wsbind.h
  5. Abstract:
  6. Private header file to be included by Workstation service modules that
  7. need to call into the NT Redirector and the NT Datagram Receiver.
  8. Author:
  9. Vladimir Z. Vulovic (vladimv) August - 08 -1991
  10. Revision History:
  11. --*/
  12. #ifndef _WSBIND_INCLUDED_
  13. #define _WSBIND_INCLUDED_
  14. typedef struct _WS_BIND_REDIR {
  15. HANDLE EventHandle;
  16. BOOL Bound;
  17. IO_STATUS_BLOCK IoStatusBlock;
  18. LMR_REQUEST_PACKET Packet;
  19. } WS_BIND_REDIR, *PWS_BIND_REDIR;
  20. typedef struct _WS_BIND_DGREC {
  21. HANDLE EventHandle;
  22. BOOL Bound;
  23. IO_STATUS_BLOCK IoStatusBlock;
  24. LMDR_REQUEST_PACKET Packet;
  25. } WS_BIND_DGREC, *PWS_BIND_DGREC;
  26. typedef struct _WS_BIND {
  27. LIST_ENTRY ListEntry;
  28. PWS_BIND_REDIR Redir;
  29. PWS_BIND_DGREC Dgrec;
  30. ULONG TransportNameLength; // not including terminator
  31. WCHAR TransportName[1]; // Name of transport provider
  32. } WS_BIND, *PWS_BIND;
  33. NET_API_STATUS
  34. WsAsyncBindTransport(
  35. IN LPTSTR transportName,
  36. IN DWORD qualityOfService,
  37. IN PLIST_ENTRY pHeader
  38. );
  39. VOID
  40. WsUnbindTransport2(
  41. IN PWS_BIND pBind
  42. );
  43. extern HANDLE WsRedirAsyncDeviceHandle; // redirector
  44. extern HANDLE WsDgrecAsyncDeviceHandle; // datagram receiver or "bowser"
  45. #endif // ifndef _WSBIND_INCLUDED_