From ed224b33989a4fefa47de4a62049c4a5486c2f1e Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 4 Dec 2003 20:53:46 +0000 Subject: [PATCH] Stub implementations for some functions. --- dlls/netapi32/access.c | 25 ++++++++++++++++++++++++- dlls/netapi32/browsr.c | 11 +++++++++++ dlls/netapi32/netapi32.spec | 10 +++++----- dlls/netapi32/wksta.c | 7 +++++++ 4 files changed, 47 insertions(+), 6 deletions(-) diff --git a/dlls/netapi32/access.c b/dlls/netapi32/access.c index 5e5a585a723..8e7c3c9b800 100644 --- a/dlls/netapi32/access.c +++ b/dlls/netapi32/access.c @@ -482,10 +482,33 @@ NetQueryDisplayInformation( */ NET_API_STATUS WINAPI -NetGetDCName(LPWSTR servername, LPWSTR domainname, LPBYTE bufptr) +NetGetDCName(LPWSTR servername, LPWSTR domainname, LPBYTE *bufptr) { FIXME("stub!\n"); return NERR_DCNotFound; /* say we can't find a domain controller */ } +/************************************************************ + * NetUserModalsGet (NETAPI32.@) + */ +NET_API_STATUS WINAPI NetUserModalsGet(LPCWSTR szServer, DWORD level, LPBYTE *pbuffer) +{ + FIXME("%s %ld %p\n", debugstr_w( szServer ), level, pbuffer ); + return NERR_InternalError; +} + +NET_API_STATUS WINAPI NetLocalGroupAdd( LPCWSTR servername, DWORD level, + LPBYTE buf, LPDWORD parm_err) +{ + FIXME("%s %ld %p %p\n", debugstr_w( servername ), level, buf, parm_err); + return NERR_Success; +} + +NET_API_STATUS WINAPI NetLocalGroupSetMembers( LPCWSTR servername, + LPCWSTR groupname, DWORD level, LPBYTE buf, DWORD totalentries) +{ + FIXME("%s %s %ld %p %ld\n", debugstr_w(servername), debugstr_w(groupname), + level, buf, totalentries); + return NERR_Success; +} diff --git a/dlls/netapi32/browsr.c b/dlls/netapi32/browsr.c index 205af40f422..3cda17ec7c8 100644 --- a/dlls/netapi32/browsr.c +++ b/dlls/netapi32/browsr.c @@ -48,3 +48,14 @@ NET_API_STATUS WINAPI I_BrowserQueryEmulatedDomains( { return ERROR_NOT_SUPPORTED; } + +/************************************************************ + * NetShareEnum (NETAPI32.@) + */ +NET_API_STATUS WINAPI NetShareEnum( LPWSTR servername, DWORD level, LPBYTE* bufptr, + DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries, LPDWORD resume_handle) +{ + FIXME("%s %ld %p %ld %p %p %p\n", debugstr_w(servername), level, bufptr, + prefmaxlen, entriesread, totalentries, resume_handle); + return ERROR_NOT_SUPPORTED; +} diff --git a/dlls/netapi32/netapi32.spec b/dlls/netapi32/netapi32.spec index c400d4ae35c..77f37eba79d 100644 --- a/dlls/netapi32/netapi32.spec +++ b/dlls/netapi32/netapi32.spec @@ -85,7 +85,7 @@ @ stub NetGroupGetUsers @ stub NetGroupSetInfo @ stub NetGroupSetUsers -@ stub NetLocalGroupAdd +@ stdcall NetLocalGroupAdd(wstr long ptr ptr) @ stub NetLocalGroupAddMember @ stub NetLocalGroupAddMembers @ stub NetLocalGroupDel @@ -95,7 +95,7 @@ @ stub NetLocalGroupGetInfo @ stub NetLocalGroupGetMembers @ stub NetLocalGroupSetInfo -@ stub NetLocalGroupSetMembers +@ stdcall NetLocalGroupSetMembers(wstr wstr long ptr ptr) @ stub NetMessageBufferSend @ stub NetMessageNameAdd @ stub NetMessageNameDel @@ -174,7 +174,7 @@ @ stub NetShareCheck @ stub NetShareDel @ stub NetShareDelSticky -@ stub NetShareEnum +@ stdcall NetShareEnum(wstr long ptr long ptr ptr ptr) @ stub NetShareEnumSticky @ stub NetShareGetInfo @ stub NetShareSetInfo @@ -190,11 +190,11 @@ @ stub NetUserGetGroups @ stdcall NetUserGetInfo(wstr wstr long ptr) @ stub NetUserGetLocalGroups -@ stub NetUserModalsGet +@ stdcall NetUserModalsGet(wstr long ptr) @ stub NetUserModalsSet @ stub NetUserSetGroups @ stub NetUserSetInfo -@ stub NetWkstaGetInfo +@ stdcall NetWkstaGetInfo(wstr long ptr) @ stub NetWkstaSetInfo @ stub NetWkstaTransportAdd @ stub NetWkstaTransportDel diff --git a/dlls/netapi32/wksta.c b/dlls/netapi32/wksta.c index 8fae79d9718..e8d366d2770 100644 --- a/dlls/netapi32/wksta.c +++ b/dlls/netapi32/wksta.c @@ -440,3 +440,10 @@ NET_API_STATUS WINAPI NetpGetComputerName(LPWSTR *Buffer) return ERROR_NOT_ENOUGH_MEMORY; } } + +NET_API_STATUS WINAPI NetWkstaGetInfo( LPWSTR servername, DWORD level, + LPBYTE* bufptr) +{ + FIXME("%p %ld %p\n", debugstr_w( servername ), level, bufptr ); + return ERROR_ACCESS_DENIED; +}