Juan Lang : iphlpapi: Partially implement IcmpSendEcho2 using IcmpSendEcho.
Alexandre Julliard
julliard at winehq.org
Fri Jul 18 06:45:45 CDT 2008
Module: wine
Branch: master
Commit: 8c4953f05a8dd39d7eaafc49bfab175119727fbf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8c4953f05a8dd39d7eaafc49bfab175119727fbf
Author: Juan Lang <juan.lang at gmail.com>
Date: Thu Jul 17 09:40:22 2008 -0700
iphlpapi: Partially implement IcmpSendEcho2 using IcmpSendEcho.
---
dlls/iphlpapi/icmp.c | 36 ++++++++++++++++++++++++++++++++++++
dlls/iphlpapi/iphlpapi.spec | 2 +-
2 files changed, 37 insertions(+), 1 deletions(-)
diff --git a/dlls/iphlpapi/icmp.c b/dlls/iphlpapi/icmp.c
index d4a45e4..3abdbba 100644
--- a/dlls/iphlpapi/icmp.c
+++ b/dlls/iphlpapi/icmp.c
@@ -68,6 +68,7 @@
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
+#include "winternl.h"
#include "ipexport.h"
#include "icmpapi.h"
#include "wine/debug.h"
@@ -476,6 +477,41 @@ DWORD WINAPI IcmpSendEcho(
return res;
}
+/***********************************************************************
+ * IcmpSendEcho2 (IPHLPAPI.@)
+ */
+DWORD WINAPI IcmpSendEcho2(
+ HANDLE IcmpHandle,
+ HANDLE Event,
+ PIO_APC_ROUTINE ApcRoutine,
+ PVOID ApcContext,
+ IPAddr DestinationAddress,
+ LPVOID RequestData,
+ WORD RequestSize,
+ PIP_OPTION_INFORMATION RequestOptions,
+ LPVOID ReplyBuffer,
+ DWORD ReplySize,
+ DWORD Timeout
+ )
+{
+ TRACE("(%p, %p, %p, %p, %08lx, %p, %d, %p, %p, %d, %d): stub\n", IcmpHandle,
+ Event, ApcRoutine, ApcContext, DestinationAddress, RequestData,
+ RequestSize, RequestOptions, ReplyBuffer, ReplySize, Timeout);
+
+ if (Event)
+ {
+ FIXME("unsupported for events\n");
+ return 0;
+ }
+ if (ApcRoutine)
+ {
+ FIXME("unsupported for APCs\n");
+ return 0;
+ }
+ return IcmpSendEcho(IcmpHandle, DestinationAddress, RequestData,
+ RequestSize, RequestOptions, ReplyBuffer, ReplySize, Timeout);
+}
+
/*
* Copyright (c) 1989 The Regents of the University of California.
* All rights reserved.
diff --git a/dlls/iphlpapi/iphlpapi.spec b/dlls/iphlpapi/iphlpapi.spec
index c31dc49..24c4e94 100644
--- a/dlls/iphlpapi/iphlpapi.spec
+++ b/dlls/iphlpapi/iphlpapi.spec
@@ -57,7 +57,7 @@
@ stdcall IcmpCloseHandle(ptr)
@ stdcall IcmpCreateFile()
@ stub IcmpParseReplies
-@ stub IcmpSendEcho2
+@ stdcall IcmpSendEcho2(ptr ptr ptr ptr long ptr long ptr ptr long long)
@ stdcall IcmpSendEcho(ptr long ptr long ptr ptr long long)
@ stub InternalCreateIpForwardEntry
@ stub InternalCreateIpNetEntry
More information about the wine-cvs
mailing list