mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 13:21:39 +00:00
[NETAPI32]
Implement NetEnumerateComputerNames. This function calls its counterpart in the workstation service. svn path=/trunk/; revision=75037
This commit is contained in:
parent
8ef995b4d0
commit
4d493bb613
2 changed files with 39 additions and 1 deletions
|
@ -139,7 +139,7 @@
|
||||||
@ stub NetDfsSetInfo
|
@ stub NetDfsSetInfo
|
||||||
@ stub NetDfsSetSecurity
|
@ stub NetDfsSetSecurity
|
||||||
@ stub NetDfsSetStdContainerSecurity
|
@ stub NetDfsSetStdContainerSecurity
|
||||||
@ stub NetEnumerateComputerNames
|
@ stdcall NetEnumerateComputerNames(wstr long long ptr ptr)
|
||||||
@ stdcall NetEnumerateTrustedDomains(wstr ptr)
|
@ stdcall NetEnumerateTrustedDomains(wstr ptr)
|
||||||
@ stdcall NetErrorLogClear(wstr wstr ptr)
|
@ stdcall NetErrorLogClear(wstr wstr ptr)
|
||||||
@ stdcall NetErrorLogRead(wstr wstr ptr long ptr long long ptr long ptr ptr)
|
@ stdcall NetErrorLogRead(wstr wstr ptr long ptr long long ptr long ptr ptr)
|
||||||
|
|
|
@ -178,6 +178,44 @@ NetAddAlternateComputerName(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetEnumerateComputerNames(
|
||||||
|
_In_opt_ LPCWSTR Server,
|
||||||
|
_In_ NET_COMPUTER_NAME_TYPE NameType,
|
||||||
|
_In_ ULONG Reserved,
|
||||||
|
_Out_ PDWORD EntryCount,
|
||||||
|
_Out_ LPWSTR **ComputerNames)
|
||||||
|
{
|
||||||
|
PNET_COMPUTER_NAME_ARRAY ComputerNameArray = NULL;
|
||||||
|
NET_API_STATUS status;
|
||||||
|
|
||||||
|
TRACE("NetEnumerateComputerNames(%s %lu %lu %p %p)\n",
|
||||||
|
debugstr_w(Server), NameType, Reserved, EntryCount, ComputerNames);
|
||||||
|
|
||||||
|
RpcTryExcept
|
||||||
|
{
|
||||||
|
status = NetrEnumerateComputerNames((PWSTR)Server,
|
||||||
|
NameType,
|
||||||
|
Reserved,
|
||||||
|
&ComputerNameArray);
|
||||||
|
if (status == NERR_Success)
|
||||||
|
{
|
||||||
|
*EntryCount = ComputerNameArray->EntryCount;
|
||||||
|
/* FIXME */
|
||||||
|
// *ComputerNames =
|
||||||
|
}
|
||||||
|
}
|
||||||
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
||||||
|
{
|
||||||
|
status = I_RpcMapWin32Status(RpcExceptionCode());
|
||||||
|
}
|
||||||
|
RpcEndExcept;
|
||||||
|
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
NET_API_STATUS
|
NET_API_STATUS
|
||||||
WINAPI
|
WINAPI
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue