From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/rpc/common/include/mailslot.h | 83 +++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 private/rpc/common/include/mailslot.h (limited to 'private/rpc/common/include/mailslot.h') diff --git a/private/rpc/common/include/mailslot.h b/private/rpc/common/include/mailslot.h new file mode 100644 index 000000000..caba485c9 --- /dev/null +++ b/private/rpc/common/include/mailslot.h @@ -0,0 +1,83 @@ +/*****************************************************************/ +/** Microsoft LAN Manager **/ +/** Copyright(c) Microsoft Corp., 1987-1990 **/ +/*****************************************************************/ + +/******************************************************************** + * * + * About this file ... MAILSLOT.H * + * * + * This file contains information about the Mailslot APIs. * + * * + * Function prototypes. * + * * + ********************************************************************/ + +#ifndef NETMAILSLOT_INCLUDED + +#define NETMAILSLOT_INCLUDED + + +/**************************************************************** + * * + * Function prototypes - Mailslot * + * * + ****************************************************************/ + +extern API_FUNCTION + DosMakeMailslot ( const char far * pszName, + unsigned short cbMessageSize, + unsigned short cbMailslotSize, + unsigned far * phMailslot ); + +extern API_FUNCTION + DosPeekMailslot ( unsigned hMailslot, + char far * pbBuffer, + unsigned short far * pcbReturned, + unsigned short far * pcbNextSize, + unsigned short far * pusNextPriority ); + +extern API_FUNCTION + DosDeleteMailslot ( unsigned hMailslot ); + +extern API_FUNCTION + DosMailslotInfo ( unsigned hMailslot, + unsigned short far * pcbMessageSize, + unsigned short far * pcbMailslotSize, + unsigned short far * pcbNextSize, + unsigned short far * pusNextPriority, + unsigned short far * pcMessages); + +extern API_FUNCTION + DosPeekMailslot ( unsigned hMailslot, + char far * pbBuffer, + unsigned short far * pcbReturned, + unsigned short far * pcbNextSize, + unsigned short far * pusNextPriority ); + +extern API_FUNCTION + DosReadMailslot ( unsigned hMailslot, + char far * pbBuffer, + unsigned short far * pcbReturned, + unsigned short far * pcbNextSize, + unsigned short far * pusNextPriority, + long cTimeout ); + +extern API_FUNCTION + DosWriteMailslot ( const char far * pszName, + const char far * pbBuffer, + unsigned short cbBuffer, + unsigned short usPriority, + unsigned short usClass, + long cTimeout ); + + +/**************************************************************** + * * + * Special values and constants - Mailslot * + * * + ****************************************************************/ + +#define MAILSLOT_NO_TIMEOUT -1 + +#endif /* NETMAILSLOT_INCLUDED */ -- cgit v1.2.3