summaryrefslogtreecommitdiffstats
path: root/private/os2/client/thunk/include/winnet.h
blob: ca14ffc77a165c3098edfa82d782120a05e2a3d1 (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
/*++

Copyright (c) 1991  Microsoft Corporation

Module Name:

    winnet.h

Abstract:

    This module defines the 32-Bit Windows Network APIs

Author:

    Manny Weiser (mannyw) 5-Mar-1991

Revision History:

--*/

#ifndef _WINNET_
#define _WINNET_

//
// Special values for mailslot information.
//

//
// Special value for NextMessageSize to indicate that there is no next 
// message.
//

#define MAILSLOT_NO_MESSAGE             -1

//
// Special value for mailslot size creation to indicate that the system
// should choose the size of the mailslot buffer.
//

#define MAILSLOT_SIZE_AUTO		         0

//
// Special value for read timeout to indicate that mailslot reads should
// never timeout.
//

#define MAILSLOT_WAIT_FOREVER           -1

BOOL
APIENTRY
CreateMailslot(
    IN LPSTR lpName,
    IN DWORD nMaxMessageSize,
    IN DWORD nMailslotSize,
    IN DWORD lReadTimeout,
    OUT LPHANDLE lpMailslotHandle,
    IN LPSECURITY_ATTRIBUTES lpSecurityAttributes OPTIONAL
    );

BOOL
APIENTRY
GetMailslotInfo(
    IN HANDLE hMailslot,
    OUT LPDWORD lpMaxMessageSize OPTIONAL,
    OUT LPDWORD lpMailslotSize OPTIONAL,
    OUT LPDWORD lpNextSize OPTIONAL,
    OUT LPDWORD lpMessageCount OPTIONAL,
    OUT LPDWORD lpReadTimeout OPTIONAL
    );

BOOL
APIENTRY
SetMailslotInfo(
    IN HANDLE hMailslot,
    IN DWORD lReadTimeout
    );

#endif // _WINNET_