Stanislav Motylkov : rasapi32: Add stub for RasGetConnectionStatistics.

Alexandre Julliard julliard at winehq.org
Fri Nov 24 14:05:21 CST 2017


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

Author: Stanislav Motylkov <x86corez at gmail.com>
Date:   Wed Nov 22 22:31:50 2017 +0300

rasapi32: Add stub for RasGetConnectionStatistics.

Signed-off-by: Stanislav Motylkov <x86corez at gmail.com>
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 .../ext-ms-win-ras-rasapi32-l1-1-0.spec                             | 2 +-
 dlls/rasapi32/rasapi.c                                              | 6 ++++++
 dlls/rasapi32/rasapi32.spec                                         | 1 +
 include/raserror.h                                                  | 1 +
 4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/dlls/ext-ms-win-ras-rasapi32-l1-1-0/ext-ms-win-ras-rasapi32-l1-1-0.spec b/dlls/ext-ms-win-ras-rasapi32-l1-1-0/ext-ms-win-ras-rasapi32-l1-1-0.spec
index bb73c8a..f215a57 100644
--- a/dlls/ext-ms-win-ras-rasapi32-l1-1-0/ext-ms-win-ras-rasapi32-l1-1-0.spec
+++ b/dlls/ext-ms-win-ras-rasapi32-l1-1-0/ext-ms-win-ras-rasapi32-l1-1-0.spec
@@ -5,7 +5,7 @@
 @ stdcall RasEnumEntriesW(wstr wstr ptr ptr ptr) rasapi32.RasEnumEntriesW
 @ stdcall RasGetAutodialAddressA(str ptr ptr ptr ptr) rasapi32.RasGetAutodialAddressA
 @ stdcall RasGetAutodialAddressW(wstr ptr ptr ptr ptr) rasapi32.RasGetAutodialAddressW
-@ stub RasGetConnectionStatistics
+@ stdcall RasGetConnectionStatistics(ptr ptr) rasapi32.RasGetConnectionStatistics
 @ stdcall RasGetConnectStatusW(ptr ptr) rasapi32.RasGetConnectStatusW
 @ stub RasGetCredentialsW
 @ stdcall RasGetEntryDialParamsW(wstr ptr ptr) rasapi32.RasGetEntryDialParamsW
diff --git a/dlls/rasapi32/rasapi.c b/dlls/rasapi32/rasapi.c
index b1721c6..791b0da 100644
--- a/dlls/rasapi32/rasapi.c
+++ b/dlls/rasapi32/rasapi.c
@@ -547,3 +547,9 @@ DWORD WINAPI RasGetLinkStatistics(HRASCONN connection, DWORD entry, RAS_STATS *s
     FIXME("(%p,%u,%p), stub!\n", connection, entry, statistics);
     return 0;
 }
+
+DWORD WINAPI RasGetConnectionStatistics(HRASCONN connection, RAS_STATS *statistics)
+{
+    FIXME("(%p,%p), stub!\n", connection, statistics);
+    return ERROR_UNKNOWN;
+}
diff --git a/dlls/rasapi32/rasapi32.spec b/dlls/rasapi32/rasapi32.spec
index 66b21a6..e8a28a8 100644
--- a/dlls/rasapi32/rasapi32.spec
+++ b/dlls/rasapi32/rasapi32.spec
@@ -33,6 +33,7 @@
 @ stdcall RasGetConnectStatusA(ptr ptr)
 @ stdcall RasGetConnectStatusW(ptr ptr)
 @ stub RasGetConnectStatusWow
+@ stdcall RasGetConnectionStatistics(ptr ptr)
 @ stub RasGetCountryInfoA
 @ stub RasGetCountryInfoW
 @ stub RasGetCredentialsA
diff --git a/include/raserror.h b/include/raserror.h
index 1735936..549b424 100644
--- a/include/raserror.h
+++ b/include/raserror.h
@@ -23,6 +23,7 @@
 #define ERROR_BUFFER_TOO_SMALL                 (RASBASE+3)
 #define ERROR_BUFFER_INVALID                   (RASBASE+10)
 #define ERROR_INVALID_SIZE                     (RASBASE+32)
+#define ERROR_UNKNOWN                          (RASBASE+35)
 #define ERROR_STATE_MACHINES_NOT_STARTED       (RASBASE+95)
 #define ERROR_RASMAN_CANNOT_INITIALIZE         (RASBASE+111)
 




More information about the wine-cvs mailing list