No more ick tabs.
[reactos.git] / reactos / lib / iphlpapi / resinfo_reactos.c
1 /*
2 * iphlpapi dll implementation -- Auxiliary icmp functions
3 *
4 * These are stubs for functions that provide a simple ICMP probing API. They
5 * will be operating system specific when implemented.
6 *
7 * Copyright (C) 2004 Art Yerkes
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 #include "config.h"
24 #include "iphlpapi_private.h"
25
26 #include <stdarg.h>
27 #include <stdlib.h>
28 #include <sys/types.h>
29 #ifdef HAVE_NETINET_IN_H
30 # include <netinet/in.h>
31 #endif
32 #ifdef HAVE_ARPA_INET_H
33 # include <arpa/inet.h>
34 #endif
35 #ifdef HAVE_ARPA_NAMESER_H
36 # include <arpa/nameser.h>
37 #endif
38 #ifdef HAVE_RESOLV_H
39 # include <resolv.h>
40 #endif
41
42 #include "windef.h"
43 #include "winbase.h"
44 #include "winreg.h"
45 #include "resinfo.h"
46 #include "iphlpapi.h"
47 #include "wine/debug.h"
48
49 WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);
50
51 PIPHLP_RES_INFO getResInfo() {
52 PIPHLP_RES_INFO InfoPtr =
53 (PIPHLP_RES_INFO)HeapAlloc( GetProcessHeap(), 0,
54 sizeof(PIPHLP_RES_INFO) );
55 if( InfoPtr ) {
56 InfoPtr->riCount = 0;
57 InfoPtr->riAddressList = (LPSOCKADDR)0;
58 }
59
60 return InfoPtr;
61 }
62
63 VOID disposeResInfo( PIPHLP_RES_INFO InfoPtr ) {
64 HeapFree( GetProcessHeap(), 0, InfoPtr );
65 }