summaryrefslogtreecommitdiffstats
path: root/private/rpc/common/include/mailslot.h
blob: caba485c9dfbbbb5b458408e9ad4b010f8007538 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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 */