From a47a0e3be7f371310276de974399241428147faf Mon Sep 17 00:00:00 2001 From: Ulrich Czekalla Date: Thu, 20 Jan 2005 10:35:21 +0000 Subject: [PATCH] Added stub implementation of NetGetJoinInformation. --- dlls/netapi32/netapi32.spec | 1 + dlls/netapi32/wksta.c | 16 ++++++++++++++ include/Makefile.in | 1 + include/lm.h | 1 + include/lmjoin.h | 43 +++++++++++++++++++++++++++++++++++++ 5 files changed, 62 insertions(+) create mode 100644 include/lmjoin.h diff --git a/dlls/netapi32/netapi32.spec b/dlls/netapi32/netapi32.spec index 94802c2792f..adba9782e19 100644 --- a/dlls/netapi32/netapi32.spec +++ b/dlls/netapi32/netapi32.spec @@ -76,6 +76,7 @@ @ stub NetGetAnyDCName @ stdcall NetGetDCName(wstr wstr ptr) @ stub NetGetDisplayInformationIndex +@ stdcall NetGetJoinInformation(wstr ptr ptr) @ stub NetGroupAdd @ stub NetGroupAddUser @ stub NetGroupDel diff --git a/dlls/netapi32/wksta.c b/dlls/netapi32/wksta.c index c6e02fae4d2..5a3a318eaa3 100644 --- a/dlls/netapi32/wksta.c +++ b/dlls/netapi32/wksta.c @@ -547,3 +547,19 @@ NET_API_STATUS WINAPI NetWkstaGetInfo( LPWSTR servername, DWORD level, } return ret; } + +/************************************************************ + * NetGetJoinInformation (NETAPI32.@) + */ +NET_API_STATUS NET_API_FUNCTION NetGetJoinInformation( + LPCWSTR Server, + LPWSTR *Name, + PNETSETUP_JOIN_STATUS type) +{ + FIXME("Stub %s %p %p\n", wine_dbgstr_w(Server), Name, type); + + *Name = NULL; + *type = NetSetupUnknownStatus; + + return NERR_Success; +} diff --git a/include/Makefile.in b/include/Makefile.in index 2188cd398fc..525d02158b8 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -133,6 +133,7 @@ WINDOWS_INCLUDES = \ lmbrowsr.h \ lmcons.h \ lmerr.h \ + lmjoin.h \ lmserver.h \ lmshare.h \ lmstats.h \ diff --git a/include/lm.h b/include/lm.h index 2ce4eed61fb..b8458800346 100644 --- a/include/lm.h +++ b/include/lm.h @@ -28,5 +28,6 @@ #include #include #include +#include #endif diff --git a/include/lmjoin.h b/include/lmjoin.h new file mode 100644 index 00000000000..7c18ca0ef53 --- /dev/null +++ b/include/lmjoin.h @@ -0,0 +1,43 @@ +/* + * Copyright 2005 Ulrich Czekalla (For CodeWeavers) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef __WINE_LMJOIN_H +#define __WINE_LMJOIN_H + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum tagNETSETUP_JOIN_STATUS +{ + NetSetupUnknownStatus = 0, + NetSetupUnjoined, + NetSetupWorkgroupName, + NetSetupDomainName +} NETSETUP_JOIN_STATUS, *PNETSETUP_JOIN_STATUS; + +NET_API_STATUS NET_API_FUNCTION NetGetJoinInformation( + LPCWSTR Server, + LPWSTR *Name, + PNETSETUP_JOIN_STATUS type); + +#ifdef __cplusplus +} +#endif + +#endif