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.

82 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. ntstapi.h
  5. Abstract:
  6. This module declares the STREAMS APIs that are provided for use
  7. primarily by the NT tcp/ip socket library.
  8. Author:
  9. Eric Chin (ericc) July 26, 1991
  10. Revision History:
  11. mikemas 01-02-92 Deleted poll definition. Mips complained because
  12. of def in winsock.h
  13. jballard 07-14-94 Added STRMAPI types. This should fix problems
  14. building outside of the MS build environment.
  15. --*/
  16. #ifndef _NTSTAPI_
  17. #define _NTSTAPI_
  18. #ifndef STRMAPI
  19. #if (_MSC_VER >= 800)
  20. #define STRMAPI __stdcall
  21. #else
  22. #define STRMAPI
  23. #endif
  24. #endif
  25. //
  26. // s_close() is not provided. Use the open and close primitives that are
  27. // appropriate to your subsystem.
  28. //
  29. int
  30. STRMAPI
  31. getmsg(
  32. IN HANDLE fd,
  33. IN OUT struct strbuf *ctrlptr OPTIONAL,
  34. IN OUT struct strbuf *dataptr OPTIONAL,
  35. IN OUT int *flagsp
  36. );
  37. int
  38. STRMAPI
  39. putmsg(
  40. IN HANDLE fd,
  41. IN struct strbuf *ctrlptr OPTIONAL,
  42. IN struct strbuf *dataptr OPTIONAL,
  43. IN int flags
  44. );
  45. int
  46. STRMAPI
  47. s_ioctl(
  48. IN HANDLE fd,
  49. IN int cmd,
  50. IN OUT void *arg OPTIONAL
  51. );
  52. HANDLE
  53. STRMAPI
  54. s_open(
  55. IN char *path,
  56. IN int oflag,
  57. IN int ignored
  58. );
  59. #endif /* _NTSTAPI_ */