Austin English : rasapi32: Add RasGetLinkStatistics stub.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Feb 18 10:14:56 CST 2016


Module: wine
Branch: master
Commit: b0e122f41179363dfaca4b437fb2b2ff3844233d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b0e122f41179363dfaca4b437fb2b2ff3844233d

Author: Austin English <austinenglish at gmail.com>
Date:   Thu Feb 18 12:01:40 2016 +0100

rasapi32: Add RasGetLinkStatistics stub.

Signed-off-by: Austin English <austinenglish at gmail.com>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/rasapi32/rasapi.c      |  6 ++++++
 dlls/rasapi32/rasapi32.spec |  1 +
 include/ras.h               | 18 ++++++++++++++++++
 3 files changed, 25 insertions(+)

diff --git a/dlls/rasapi32/rasapi.c b/dlls/rasapi32/rasapi.c
index 15061c5..fcd0cb8 100644
--- a/dlls/rasapi32/rasapi.c
+++ b/dlls/rasapi32/rasapi.c
@@ -539,3 +539,9 @@ DWORD WINAPI RasSetSubEntryPropertiesW(LPCWSTR lpszPhonebook, LPCWSTR lpszEntry,
           dwcbDeviceConfig);
     return 0;
 }
+
+DWORD WINAPI RasGetLinkStatistics(HRASCONN connection, DWORD entry, RAS_STATS *statistics)
+{
+    FIXME("(%p,%u,%p), stub!\n", connection, entry, statistics);
+    return 0;
+}
diff --git a/dlls/rasapi32/rasapi32.spec b/dlls/rasapi32/rasapi32.spec
index f2ce65e..66b21a6 100644
--- a/dlls/rasapi32/rasapi32.spec
+++ b/dlls/rasapi32/rasapi32.spec
@@ -45,6 +45,7 @@
 @ stdcall RasGetErrorStringW(long ptr long)
 @ stub RasGetErrorStringWow
 @ stub RasGetHport
+@ stdcall RasGetLinkStatistics(ptr long ptr)
 @ stdcall RasGetProjectionInfoA(ptr ptr ptr ptr)
 @ stdcall RasGetProjectionInfoW(ptr ptr ptr ptr)
 @ stub RasGetSubEntryHandleA
diff --git a/include/ras.h b/include/ras.h
index 9e5d564..a8c04da 100644
--- a/include/ras.h
+++ b/include/ras.h
@@ -426,6 +426,24 @@ typedef struct tagRASAUTODIALENTRYW
     WCHAR szEntry[ RAS_MaxEntryName + 1 ];
 } RASAUTODIALENTRYW, *LPRASAUTODIALENTRYW;
 
+typedef struct _RAS_STATS
+{
+    DWORD dwSize;
+    DWORD dwBytesXmited;
+    DWORD dwBytesRcved;
+    DWORD dwFramesXmited;
+    DWORD dwFramesRcved;
+    DWORD dwCrcErr;
+    DWORD dwTimeoutErr;
+    DWORD dwAlignmentErr;
+    DWORD dwHardwareOverrunErr;
+    DWORD dwFramingErr;
+    DWORD dwBufferOverrunErr;
+    DWORD dwCompressionRatioIn;
+    DWORD dwCompressionRatioOut;
+    DWORD dwBps;
+    DWORD dwConnectDuration;
+} RAS_STATS, *PRAS_STATS;
 
 DWORD WINAPI RasConnectionNotificationA(HRASCONN,HANDLE,DWORD);
 DWORD WINAPI RasConnectionNotificationW(HRASCONN,HANDLE,DWORD);




More information about the wine-cvs mailing list