From 1c9b13e9d66bd8bbb4a7f0dcb2b4e292e688f4da Mon Sep 17 00:00:00 2001 From: Robert W Hall Date: Sat, 5 Jun 1999 11:51:40 +0000 Subject: [PATCH] Added 2 stubs. --- include/winnetwk.h | 29 ++++++++++++++++------------- include/wnet.h | 3 +++ misc/network.c | 28 ++++++++++++++++++++++++++++ relay32/mpr.spec | 4 ++-- 4 files changed, 49 insertions(+), 15 deletions(-) diff --git a/include/winnetwk.h b/include/winnetwk.h index cf8f2273e9c..be4ba8d1c20 100644 --- a/include/winnetwk.h +++ b/include/winnetwk.h @@ -66,19 +66,22 @@ typedef struct { } NETCONNECTINFOSTRUCT,*LPNETCONNECTINFOSTRUCT; -UINT WINAPI WNetAddConnection2A(LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD); -UINT WINAPI WNetAddConnection2W(LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD); -#define WNetAddConnection2 WINELIB_NAME_AW(WNetAddConnection2_) -UINT WINAPI WNetAddConnection3A(HWND,LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD); -UINT WINAPI WNetAddConnection3W(HWND,LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD); -#define WNetAddConnection3 WINELIB_NAME_AW(WNetAddConnection3_) -UINT WINAPI WNetConnectionDialog1(HWND,DWORD); -UINT WINAPI WNetConnectionDialog1A(LPCONNECTDLGSTRUCTA); -UINT WINAPI WNetConnectionDialog1W(LPCONNECTDLGSTRUCTW); -#define WNetConnectionDialog1 WINELIB_NAME_AW(WNetConnectionDialog1_) -UINT WINAPI MultinetGetErrorTextA(DWORD,DWORD,DWORD); -UINT WINAPI MultinetGetErrorTextW(DWORD,DWORD,DWORD); -#define MultinetGetErrorText WINELIB_NAME_AW(MultinetGetErrorText_) +UINT WINAPI WNetAddConnection2A(LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD); +UINT WINAPI WNetAddConnection2W(LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD); +#define WNetAddConnection2 WINELIB_NAME_AW(WNetAddConnection2) +UINT WINAPI WNetAddConnection3A(HWND,LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD); +UINT WINAPI WNetAddConnection3W(HWND,LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD); +#define WNetAddConnection3 WINELIB_NAME_AW(WNetAddConnection3) +UINT WINAPI WNetConnectionDialog1(HWND,DWORD); +UINT WINAPI WNetConnectionDialog1A(LPCONNECTDLGSTRUCTA); +UINT WINAPI WNetConnectionDialog1W(LPCONNECTDLGSTRUCTW); +#define WNetConnectionDialog1 WINELIB_NAME_AW(WNetConnectionDialog1) +UINT WINAPI MultinetGetErrorTextA(DWORD,DWORD,DWORD); +UINT WINAPI MultinetGetErrorTextW(DWORD,DWORD,DWORD); +#define MultinetGetErrorText WINELIB_NAME_AW(MultinetGetErrorText) +DWORD WINAPI NPSGetSectionNameA(DWORD,LPCSTR*); +DWORD WINAPI NPSGetSectionNameW(DWORD,LPCWSTR*); +#define NPSGetSectionName WINELIB_NAME_AW(NPSGetSectionName) #define RESOURCETYPE_ANY 0x00000000 #define RESOURCETYPE_DISK 0x00000001 diff --git a/include/wnet.h b/include/wnet.h index 71e8c00a8ce..3729642a508 100644 --- a/include/wnet.h +++ b/include/wnet.h @@ -5,6 +5,8 @@ #ifndef __WINE_WNET_H #define __WINE_WNET_H +#include "winerror.h" + #define WNDN_MKDIR 1 #define WNDN_RMDIR 2 #define WNDN_MVDIR 3 @@ -23,6 +25,7 @@ #define WN_OUT_OF_MEMORY 0x000B #define WN_CANCEL 0x000C #define WN_CONTINUE 0x000D +#define WN_BAD_HANDLE ERROR_INVALID_HANDLE #define WN_NOT_CONNECTED 0x0030 #define WN_OPEN_FILES 0x0031 #define WN_BAD_NETNAME 0x0032 diff --git a/misc/network.c b/misc/network.c index 5690623ff78..0bc82cd63df 100644 --- a/misc/network.c +++ b/misc/network.c @@ -767,6 +767,34 @@ DWORD WINAPI NPSGetProviderHandleA(DWORD x) { return 0; } +/**************************************************************** + * NPSGetProviderNameA [MPR.35] + * 'DWORD x' replaces 'HPROVIDER hProvider' + * FAR omitted in lpszProviderName def + */ +DWORD WINAPI NPSGetProviderNameA( + DWORD x, + LPCSTR * lpszProviderName) { + FIXME_(mpr)("(0x%08lx),stub!\n",x); +/* return WN_SUCCESS; +*/ + return WN_BAD_HANDLE; +} + +/***************************************************************** + * NPSGetSectionNameA [MPR.36] + * 'DWORD x' replaces 'HPROVIDER hProvider' + * FAR omitted in lpszSectionName def + */ +DWORD WINAPI NPSGetSectionNameA( + DWORD x, + LPCSTR * lpszSectionName) { + FIXME_(mpr)("(0x%08lx),stub!\n",x); +/* return WN_SUCCESS; +*/ + return WN_BAD_HANDLE; +} + /***************************************************************** * WNetCancelConnection232A [MPR.53] */ diff --git a/relay32/mpr.spec b/relay32/mpr.spec index eb675907bc0..fc900b5a547 100644 --- a/relay32/mpr.spec +++ b/relay32/mpr.spec @@ -35,8 +35,8 @@ type win32 0032 stub NPSDeviceGetNumberA 0033 stub NPSDeviceGetStringA 0034 stdcall NPSGetProviderHandleA(long) NPSGetProviderHandleA -0035 stub NPSGetProviderNameA -0036 stub NPSGetSectionNameA +0035 stdcall NPSGetProviderNameA(long ptr) NPSGetProviderNameA +0036 stdcall NPSGetSectionNameA(long ptr) NPSGetSectionNameA 0037 stub NPSNotifyGetContextA 0038 stub NPSNotifyRegisterA 0039 stub NPSSetCustomTextA