Nowres Rafed : iphlpapi: Implemented IcmpSendEcho2Ex().
Alexandre Julliard
julliard at winehq.org
Fri Jul 29 12:37:04 CDT 2011
Module: wine
Branch: master
Commit: 1013f70a1fe402690f69f1c6df90c51ed14603ce
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1013f70a1fe402690f69f1c6df90c51ed14603ce
Author: Nowres Rafed <nowres.rafed at gmail.com>
Date: Thu Jul 28 14:22:42 2011 +0100
iphlpapi: Implemented IcmpSendEcho2Ex().
---
dlls/iphlpapi/icmp.c | 42 ++++++++++++++++++++++++++++++++++++++++++
dlls/iphlpapi/iphlpapi.spec | 1 +
2 files changed, 43 insertions(+), 0 deletions(-)
diff --git a/dlls/iphlpapi/icmp.c b/dlls/iphlpapi/icmp.c
index 50f5bf0..78b91c6 100644
--- a/dlls/iphlpapi/icmp.c
+++ b/dlls/iphlpapi/icmp.c
@@ -516,6 +516,48 @@ DWORD WINAPI IcmpSendEcho2(
RequestSize, RequestOptions, ReplyBuffer, ReplySize, Timeout);
}
+/***********************************************************************
+ * IcmpSendEcho2Ex (IPHLPAPI.@)
+ */
+DWORD WINAPI IcmpSendEcho2Ex(
+ HANDLE IcmpHandle,
+ HANDLE Event,
+ PIO_APC_ROUTINE ApcRoutine,
+ PVOID ApcContext,
+ IPAddr SourceAddress,
+ IPAddr DestinationAddress,
+ LPVOID RequestData,
+ WORD RequestSize,
+ PIP_OPTION_INFORMATION RequestOptions,
+ LPVOID ReplyBuffer,
+ DWORD ReplySize,
+ DWORD Timeout
+ )
+{
+ TRACE("(%p, %p, %p, %p, %08x, %08x, %p, %d, %p, %p, %d, %d): stub\n", IcmpHandle,
+ Event, ApcRoutine, ApcContext, SourceAddress, 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;
+ }
+ if (SourceAddress)
+ {
+ FIXME("unsupported for source addresses\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 e53a641..1c33625 100644
--- a/dlls/iphlpapi/iphlpapi.spec
+++ b/dlls/iphlpapi/iphlpapi.spec
@@ -59,6 +59,7 @@
@ stdcall IcmpCloseHandle(ptr)
@ stdcall IcmpCreateFile()
@ stub IcmpParseReplies
+@ stdcall IcmpSendEcho2Ex(ptr ptr ptr ptr long long ptr long ptr ptr long long)
@ 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
More information about the wine-cvs
mailing list