mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:56:26 +00:00
[NETAPI32] Implement DsGetDcNameA/W --> DsGetDcNameWithAccountA/W --> DsrGetDcNameEx2.
This commit is contained in:
parent
e397003617
commit
57d48a7f1c
2 changed files with 107 additions and 9 deletions
|
@ -10,8 +10,8 @@
|
||||||
@ stub DsGetDcCloseW
|
@ stub DsGetDcCloseW
|
||||||
@ stdcall DsGetDcNameA(str str ptr str long ptr)
|
@ stdcall DsGetDcNameA(str str ptr str long ptr)
|
||||||
@ stdcall DsGetDcNameW(wstr wstr ptr wstr long ptr)
|
@ stdcall DsGetDcNameW(wstr wstr ptr wstr long ptr)
|
||||||
@ stub DsGetDcNameWithAccountA
|
@ stdcall DsGetDcNameWithAccountA(str str long str ptr str long ptr)
|
||||||
@ stub DsGetDcNameWithAccountW
|
@ stdcall DsGetDcNameWithAccountW(wstr wstr long wstr ptr wstr long ptr)
|
||||||
@ stub DsGetDcNextA
|
@ stub DsGetDcNextA
|
||||||
@ stub DsGetDcNextW
|
@ stub DsGetDcNextW
|
||||||
@ stub DsGetDcOpenA
|
@ stub DsGetDcOpenA
|
||||||
|
|
|
@ -17,6 +17,30 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
|
WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
WINAPI
|
||||||
|
DsGetDcNameWithAccountA(
|
||||||
|
_In_opt_ LPCSTR ComputerName,
|
||||||
|
_In_opt_ LPCSTR AccountName,
|
||||||
|
_In_ ULONG AccountControlBits,
|
||||||
|
_In_ LPCSTR DomainName,
|
||||||
|
_In_ GUID *DomainGuid,
|
||||||
|
_In_ LPCSTR SiteName,
|
||||||
|
_In_ ULONG Flags,
|
||||||
|
_Out_ PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo);
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
WINAPI
|
||||||
|
DsGetDcNameWithAccountW(
|
||||||
|
_In_ LPCWSTR ComputerName,
|
||||||
|
_In_opt_ LPCWSTR AccountName,
|
||||||
|
_In_ ULONG AccountControlBits,
|
||||||
|
_In_ LPCWSTR DomainName,
|
||||||
|
_In_ GUID *DomainGuid,
|
||||||
|
_In_ LPCWSTR SiteName,
|
||||||
|
_In_ ULONG Flags,
|
||||||
|
_Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo);
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
handle_t
|
handle_t
|
||||||
|
@ -360,34 +384,108 @@ DsEnumerateDomainTrustsW(
|
||||||
DWORD
|
DWORD
|
||||||
WINAPI
|
WINAPI
|
||||||
DsGetDcNameA(
|
DsGetDcNameA(
|
||||||
_In_ LPCSTR ComputerName,
|
_In_opt_ LPCSTR ComputerName,
|
||||||
_In_ LPCSTR DomainName,
|
_In_ LPCSTR DomainName,
|
||||||
_In_ GUID *DomainGuid,
|
_In_ GUID *DomainGuid,
|
||||||
_In_ LPCSTR SiteName,
|
_In_ LPCSTR SiteName,
|
||||||
_In_ ULONG Flags,
|
_In_ ULONG Flags,
|
||||||
_Out_ PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo)
|
_Out_ PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo)
|
||||||
{
|
{
|
||||||
FIXME("DsGetDcNameA(%s, %s, %s, %s, %08x, %p): stub\n",
|
TRACE("DsGetDcNameA(%s, %s, %s, %s, %08lx, %p): stub\n",
|
||||||
debugstr_a(ComputerName), debugstr_a(DomainName), debugstr_guid(DomainGuid),
|
debugstr_a(ComputerName), debugstr_a(DomainName), debugstr_guid(DomainGuid),
|
||||||
debugstr_a(SiteName), Flags, DomainControllerInfo);
|
debugstr_a(SiteName), Flags, DomainControllerInfo);
|
||||||
|
return DsGetDcNameWithAccountA(ComputerName,
|
||||||
|
NULL,
|
||||||
|
0,
|
||||||
|
DomainName,
|
||||||
|
DomainGuid,
|
||||||
|
SiteName,
|
||||||
|
Flags,
|
||||||
|
DomainControllerInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
WINAPI
|
||||||
|
DsGetDcNameW(
|
||||||
|
_In_opt_ LPCWSTR ComputerName,
|
||||||
|
_In_ LPCWSTR DomainName,
|
||||||
|
_In_ GUID *DomainGuid,
|
||||||
|
_In_ LPCWSTR SiteName,
|
||||||
|
_In_ ULONG Flags,
|
||||||
|
_Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
|
||||||
|
{
|
||||||
|
TRACE("DsGetDcNameW(%s, %s, %s, %s, %08lx, %p)\n",
|
||||||
|
debugstr_w(ComputerName), debugstr_w(DomainName), debugstr_guid(DomainGuid),
|
||||||
|
debugstr_w(SiteName), Flags, DomainControllerInfo);
|
||||||
|
return DsGetDcNameWithAccountW(ComputerName,
|
||||||
|
NULL,
|
||||||
|
0,
|
||||||
|
DomainName,
|
||||||
|
DomainGuid,
|
||||||
|
SiteName,
|
||||||
|
Flags,
|
||||||
|
DomainControllerInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DWORD
|
||||||
|
WINAPI
|
||||||
|
DsGetDcNameWithAccountA(
|
||||||
|
_In_opt_ LPCSTR ComputerName,
|
||||||
|
_In_opt_ LPCSTR AccountName,
|
||||||
|
_In_ ULONG AccountControlBits,
|
||||||
|
_In_ LPCSTR DomainName,
|
||||||
|
_In_ GUID *DomainGuid,
|
||||||
|
_In_ LPCSTR SiteName,
|
||||||
|
_In_ ULONG Flags,
|
||||||
|
_Out_ PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo)
|
||||||
|
{
|
||||||
|
FIXME("DsGetDcNameWithAccountA(%s, %s, %08lx, %s, %s, %s, %08lx, %p): stub\n",
|
||||||
|
debugstr_a(ComputerName), debugstr_a(AccountName), AccountControlBits,
|
||||||
|
debugstr_a(DomainName), debugstr_guid(DomainGuid),
|
||||||
|
debugstr_a(SiteName), Flags, DomainControllerInfo);
|
||||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
DWORD
|
DWORD
|
||||||
WINAPI
|
WINAPI
|
||||||
DsGetDcNameW(
|
DsGetDcNameWithAccountW(
|
||||||
_In_ LPCWSTR ComputerName,
|
_In_opt_ LPCWSTR ComputerName,
|
||||||
|
_In_opt_ LPCWSTR AccountName,
|
||||||
|
_In_ ULONG AccountControlBits,
|
||||||
_In_ LPCWSTR DomainName,
|
_In_ LPCWSTR DomainName,
|
||||||
_In_ GUID *DomainGuid,
|
_In_ GUID *DomainGuid,
|
||||||
_In_ LPCWSTR SiteName,
|
_In_ LPCWSTR SiteName,
|
||||||
_In_ ULONG Flags,
|
_In_ ULONG Flags,
|
||||||
_Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
|
_Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
|
||||||
{
|
{
|
||||||
FIXME("DsGetDcNameW(%s, %s, %s, %s, %08x, %p)\n",
|
NET_API_STATUS status;
|
||||||
debugstr_w(ComputerName), debugstr_w(DomainName), debugstr_guid(DomainGuid),
|
|
||||||
|
FIXME("DsGetDcNameWithAccountW(%s, %s, %08lx, %s, %s, %s, %08lx, %p): stub\n",
|
||||||
|
debugstr_w(ComputerName), debugstr_w(AccountName), AccountControlBits,
|
||||||
|
debugstr_w(DomainName), debugstr_guid(DomainGuid),
|
||||||
debugstr_w(SiteName), Flags, DomainControllerInfo);
|
debugstr_w(SiteName), Flags, DomainControllerInfo);
|
||||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
|
||||||
|
RpcTryExcept
|
||||||
|
{
|
||||||
|
status = DsrGetDcNameEx2((PWSTR)ComputerName,
|
||||||
|
(PWSTR)AccountName,
|
||||||
|
AccountControlBits,
|
||||||
|
(PWSTR)DomainName,
|
||||||
|
DomainGuid,
|
||||||
|
(PWSTR)SiteName,
|
||||||
|
Flags,
|
||||||
|
DomainControllerInfo);
|
||||||
|
}
|
||||||
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
||||||
|
{
|
||||||
|
status = I_RpcMapWin32Status(RpcExceptionCode());
|
||||||
|
}
|
||||||
|
RpcEndExcept;
|
||||||
|
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue