[CMAKE]
[reactos.git] / include / psdk / icmpapi.h
1 /*
2 * Interface to the ICMP functions.
3 *
4 * Copyright (C) 1999 Francois Gouget
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #ifndef __WINE_ICMPAPI_H
22 #define __WINE_ICMPAPI_H
23
24 HANDLE WINAPI IcmpCreateFile(
25 VOID
26 );
27
28 HANDLE WINAPI Icmp6CreateFile(
29 VOID
30 );
31
32 BOOL WINAPI IcmpCloseHandle(
33 HANDLE IcmpHandle
34 );
35
36 DWORD WINAPI IcmpSendEcho(
37 HANDLE IcmpHandle,
38 IPAddr DestinationAddress,
39 LPVOID RequestData,
40 WORD RequestSize,
41 PIP_OPTION_INFORMATION RequestOptions,
42 LPVOID ReplyBuffer,
43 DWORD ReplySize,
44 DWORD Timeout
45 );
46
47 DWORD
48 WINAPI
49 IcmpSendEcho2(
50 HANDLE IcmpHandle,
51 HANDLE Event,
52 FARPROC ApcRoutine,
53 PVOID ApcContext,
54 IPAddr DestinationAddress,
55 LPVOID RequestData,
56 WORD RequestSize,
57 PIP_OPTION_INFORMATION RequestOptions,
58 LPVOID ReplyBuffer,
59 DWORD ReplySize,
60 DWORD Timeout
61 );
62
63 DWORD
64 WINAPI
65 Icmp6SendEcho2(
66 HANDLE IcmpHandle,
67 HANDLE Event,
68 FARPROC ApcRoutine,
69 PVOID ApcContext,
70 struct sockaddr_in6 *SourceAddress,
71 struct sockaddr_in6 *DestinationAddress,
72 LPVOID RequestData,
73 WORD RequestSize,
74 PIP_OPTION_INFORMATION RequestOptions,
75 LPVOID ReplyBuffer,
76 DWORD ReplySize,
77 DWORD Timeout
78 );
79
80 DWORD
81 WINAPI
82 IcmpParseReplies(
83 LPVOID ReplyBuffer,
84 DWORD ReplySize
85 );
86
87 DWORD
88 WINAPI
89 Icmp6ParseReplies(
90 LPVOID ReplyBuffer,
91 DWORD ReplySize
92 );
93
94 #endif /* __WINE_ICMPAPI_H */