From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/inc/ntstapi.h | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 private/inc/ntstapi.h (limited to 'private/inc/ntstapi.h') diff --git a/private/inc/ntstapi.h b/private/inc/ntstapi.h new file mode 100644 index 000000000..f524cc795 --- /dev/null +++ b/private/inc/ntstapi.h @@ -0,0 +1,82 @@ +/*++ + +Copyright (c) 1991 Microsoft Corporation + +Module Name: + + ntstapi.h + +Abstract: + + This module declares the STREAMS APIs that are provided for use + primarily by the NT tcp/ip socket library. + +Author: + + Eric Chin (ericc) July 26, 1991 + +Revision History: + + mikemas 01-02-92 Deleted poll definition. Mips complained because + of def in winsock.h + + jballard 07-14-94 Added STRMAPI types. This should fix problems + building outside of the MS build environment. + + +--*/ + +#ifndef _NTSTAPI_ +#define _NTSTAPI_ + +#ifndef STRMAPI + +#if (_MSC_VER >= 800) +#define STRMAPI __stdcall +#else +#define STRMAPI +#endif + +#endif + + +// +// s_close() is not provided. Use the open and close primitives that are +// appropriate to your subsystem. +// + +int +STRMAPI +getmsg( + IN HANDLE fd, + IN OUT struct strbuf *ctrlptr OPTIONAL, + IN OUT struct strbuf *dataptr OPTIONAL, + IN OUT int *flagsp + ); + +int +STRMAPI +putmsg( + IN HANDLE fd, + IN struct strbuf *ctrlptr OPTIONAL, + IN struct strbuf *dataptr OPTIONAL, + IN int flags + ); + +int +STRMAPI +s_ioctl( + IN HANDLE fd, + IN int cmd, + IN OUT void *arg OPTIONAL + ); + +HANDLE +STRMAPI +s_open( + IN char *path, + IN int oflag, + IN int ignored + ); + +#endif /* _NTSTAPI_ */ -- cgit v1.2.3