mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:32:59 +00:00
[NETAPI32]
Implement NetLogonSetServiceBits(). svn path=/trunk/; revision=75974
This commit is contained in:
parent
03acaff5b1
commit
4364981793
2 changed files with 40 additions and 6 deletions
|
@ -174,7 +174,7 @@
|
||||||
@ stdcall NetLocalGroupSetInfo(wstr wstr long ptr ptr)
|
@ stdcall NetLocalGroupSetInfo(wstr wstr long ptr ptr)
|
||||||
@ stdcall NetLocalGroupSetMembers(wstr wstr long ptr long)
|
@ stdcall NetLocalGroupSetMembers(wstr wstr long ptr long)
|
||||||
@ stub NetLogonGetTimeServiceParentDomain
|
@ stub NetLogonGetTimeServiceParentDomain
|
||||||
@ stub NetLogonSetServiceBits
|
@ stdcall NetLogonSetServiceBits(wstr long long)
|
||||||
@ stdcall NetMessageBufferSend(wstr wstr wstr ptr long)
|
@ stdcall NetMessageBufferSend(wstr wstr wstr ptr long)
|
||||||
@ stdcall NetMessageNameAdd(wstr wstr)
|
@ stdcall NetMessageNameAdd(wstr wstr)
|
||||||
@ stdcall NetMessageNameDel(wstr wstr)
|
@ stdcall NetMessageNameDel(wstr wstr)
|
||||||
|
|
|
@ -19,8 +19,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
handle_t __RPC_USER
|
handle_t
|
||||||
LOGONSRV_HANDLE_bind(LOGONSRV_HANDLE pszSystemName)
|
__RPC_USER
|
||||||
|
LOGONSRV_HANDLE_bind(
|
||||||
|
LOGONSRV_HANDLE pszSystemName)
|
||||||
{
|
{
|
||||||
handle_t hBinding = NULL;
|
handle_t hBinding = NULL;
|
||||||
LPWSTR pszStringBinding;
|
LPWSTR pszStringBinding;
|
||||||
|
@ -58,8 +60,10 @@ LOGONSRV_HANDLE_bind(LOGONSRV_HANDLE pszSystemName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void __RPC_USER
|
void
|
||||||
LOGONSRV_HANDLE_unbind(LOGONSRV_HANDLE pszSystemName,
|
__RPC_USER
|
||||||
|
LOGONSRV_HANDLE_unbind(
|
||||||
|
LOGONSRV_HANDLE pszSystemName,
|
||||||
handle_t hBinding)
|
handle_t hBinding)
|
||||||
{
|
{
|
||||||
RPC_STATUS status;
|
RPC_STATUS status;
|
||||||
|
@ -74,6 +78,8 @@ LOGONSRV_HANDLE_unbind(LOGONSRV_HANDLE pszSystemName,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* PUBLIC FUNCTIONS **********************************************************/
|
||||||
|
|
||||||
DWORD
|
DWORD
|
||||||
WINAPI
|
WINAPI
|
||||||
DsAddressToSiteNamesA(
|
DsAddressToSiteNamesA(
|
||||||
|
@ -645,4 +651,32 @@ NetGetDCName(
|
||||||
return NERR_DCNotFound;
|
return NERR_DCNotFound;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
WINAPI
|
||||||
|
NetLogonSetServiceBits(
|
||||||
|
_In_ LPWSTR ServerName,
|
||||||
|
_In_ DWORD ServiceBitsOfInterest,
|
||||||
|
_In_ DWORD ServiceBits)
|
||||||
|
{
|
||||||
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
TRACE("NetLogonSetServiceBits(%s 0x%lx 0x%lx)\n",
|
||||||
|
debugstr_w(ServerName), ServiceBitsOfInterest, ServiceBits);
|
||||||
|
|
||||||
|
RpcTryExcept
|
||||||
|
{
|
||||||
|
Status = NetrLogonSetServiceBits(ServerName,
|
||||||
|
ServiceBitsOfInterest,
|
||||||
|
ServiceBits);
|
||||||
|
}
|
||||||
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
||||||
|
{
|
||||||
|
Status = RpcExceptionCode();
|
||||||
|
}
|
||||||
|
RpcEndExcept;
|
||||||
|
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue