https://git.reactos.org/?p=reactos.git;a=commitdiff;h=83fcd65700e8cf6d0c07c8...
commit 83fcd65700e8cf6d0c07c81d85a07e68c5d87cdc Author: Serge Gautherie 32623169+SergeGautherie@users.noreply.github.com AuthorDate: Sat Jun 5 20:49:41 2021 +0200 Commit: GitHub noreply@github.com CommitDate: Sat Jun 5 20:49:41 2021 +0200
[MPR] spec: Add stubs, document parameter types, stub-enable 2 functions (#3696)
* Add 20 stubs from mpr.dll v5.2.3790.3959. * Document some parameter types from https://github.com/Microsoft/winfile/ * Change WNetGetDirectoryType[A|W] to no-op stubs
CORE-14376 --- dll/win32/mpr/mpr.spec | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/dll/win32/mpr/mpr.spec b/dll/win32/mpr/mpr.spec index d8f25709c5d..f1d313fa043 100644 --- a/dll/win32/mpr/mpr.spec +++ b/dll/win32/mpr/mpr.spec @@ -23,6 +23,7 @@ 24 stdcall @(ptr) MPR_Free 25 stdcall @(ptr long) _MPR_25
+@ stub I_MprSaveConn @ stdcall MultinetGetConnectionPerformanceA(ptr ptr) @ stdcall MultinetGetConnectionPerformanceW(ptr ptr) @ stdcall MultinetGetErrorTextA(long long long) @@ -44,6 +45,7 @@ @ stdcall PwdGetPasswordStatusW(wstr long ptr) @ stdcall PwdSetPasswordStatusA(str long long) @ stdcall PwdSetPasswordStatusW(wstr long long) +@ stub RestoreConnectionA0 @ stdcall WNetAddConnection2A(ptr str str long) @ stdcall WNetAddConnection2W(ptr wstr wstr long) @ stdcall WNetAddConnection3A(long ptr str str long) @@ -60,9 +62,13 @@ @ stdcall WNetConnectionDialog1A(ptr) @ stdcall WNetConnectionDialog1W(ptr) @ stdcall WNetConnectionDialog(long long) +@ stub WNetConnectionDialog2 # (ptr long wstr long) +@ stub WNetDirectoryNotifyA +@ stub WNetDirectoryNotifyW # (ptr wstr long) @ stdcall WNetDisconnectDialog1A(ptr) @ stdcall WNetDisconnectDialog1W(ptr) @ stdcall WNetDisconnectDialog(long long) +@ stub WNetDisconnectDialog2 # (ptr long wstr long) @ stdcall WNetEnumCachedPasswords(str long long ptr long) @ stdcall WNetEnumResourceA(long ptr ptr ptr) @ stdcall WNetEnumResourceW(long ptr ptr ptr) @@ -70,11 +76,16 @@ @ stub WNetFMXGetPermCaps @ stub WNetFMXGetPermHelp @ stub WNetFormatNetworkNameA -@ stub WNetFormatNetworkNameW +@ stub WNetFormatNetworkNameW # (wstr wstr ptr ptr long long) @ stdcall WNetGetCachedPassword(ptr long ptr ptr long) +@ stub WNetGetConnection2A +@ stub WNetGetConnection2W # (wstr ptr ptr) +@ stub WNetGetConnection3A +@ stub WNetGetConnection3W @ stdcall WNetGetConnectionA(str ptr ptr) @ stdcall WNetGetConnectionW(wstr ptr ptr) -@ stub WNetGetDirectoryTypeA +@ stdcall -stub WNetGetDirectoryTypeA(str ptr long) +@ stdcall -stub WNetGetDirectoryTypeW(wstr ptr long) @ stub WNetGetHomeDirectoryA @ stub WNetGetHomeDirectoryW @ stdcall WNetGetLastErrorA(ptr ptr long ptr long) @@ -82,12 +93,16 @@ @ stdcall WNetGetNetworkInformationA(str ptr) @ stdcall WNetGetNetworkInformationW(wstr ptr) @ stub WNetGetPropertyTextA +@ stub WNetGetPropertyTextW # (long long wstr ptr long long) @ stdcall WNetGetProviderNameA(long ptr ptr) @ stdcall WNetGetProviderNameW(long ptr ptr) +@ stub WNetGetProviderTypeA +@ stub WNetGetProviderTypeW @ stdcall WNetGetResourceInformationA(ptr ptr ptr ptr) @ stdcall WNetGetResourceInformationW(ptr ptr ptr ptr) @ stdcall WNetGetResourceParentA(ptr ptr ptr) @ stdcall WNetGetResourceParentW(ptr ptr ptr) +@ stub WNetGetSearchDialog @ stdcall WNetGetUniversalNameA (str long ptr ptr) @ stdcall WNetGetUniversalNameW (wstr long ptr ptr) @ stdcall WNetGetUserA(str ptr ptr) @@ -101,12 +116,18 @@ @ stdcall WNetOpenEnumW(long long long ptr ptr) @ stub WNetPasswordChangeNotify @ stub WNetPropertyDialogA +@ stub WNetPropertyDialogW # (ptr long long wstr long) @ stdcall WNetRemoveCachedPassword(ptr long long) @ stub WNetRestoreConnection +@ stub WNetRestoreConnection2W @ stdcall WNetRestoreConnectionA(long str) @ stdcall WNetRestoreConnectionW(long wstr) +# WNetRestoreSingleConnectionW # (ptr wstr long) # Not in WS03 yet? @ stdcall WNetSetConnectionA(str long ptr) @ stdcall WNetSetConnectionW(wstr long ptr) +@ stub WNetSetLastErrorA # {long str str) +@ stub WNetSetLastErrorW # {long wstr wstr) +@ stub WNetSupportGlobalEnum @ stdcall WNetUseConnectionA(long ptr str str long str ptr ptr) @ stdcall WNetUseConnectionW(long ptr wstr wstr long wstr ptr ptr) @ stdcall WNetVerifyPasswordA(str ptr)