2 * COPYRIGHT: See COPYING in the top level directory
4 * FILE: reactos/dll/win32/netapi32/schedule.c
5 * PURPOSE: Server service interface code
7 * PROGRAMMERS: Eric Kohl
10 /* INCLUDES ******************************************************************/
15 WINE_DEFAULT_DEBUG_CHANNEL(netapi32
);
17 /* FUNCTIONS *****************************************************************/
20 SRVSVC_HANDLE_bind(SRVSVC_HANDLE pszSystemName
)
22 handle_t hBinding
= NULL
;
23 LPWSTR pszStringBinding
;
26 TRACE("SRVSVC_HANDLE_bind() called\n");
28 status
= RpcStringBindingComposeW(NULL
,
30 (RPC_WSTR
)pszSystemName
,
36 TRACE("RpcStringBindingCompose returned 0x%x\n", status
);
40 /* Set the binding handle that will be used to bind to the server. */
41 status
= RpcBindingFromStringBindingW(pszStringBinding
,
45 TRACE("RpcBindingFromStringBinding returned 0x%x\n", status
);
48 status
= RpcStringFreeW(&pszStringBinding
);
51 // TRACE("RpcStringFree returned 0x%x\n", status);
59 SRVSVC_HANDLE_unbind(SRVSVC_HANDLE pszSystemName
,
64 TRACE("SRVSVC_HANDLE_unbind() called\n");
66 status
= RpcBindingFree(&hBinding
);
69 TRACE("RpcBindingFree returned 0x%x\n", status
);
77 LPCWSTR UncServerName
,
80 NET_API_STATUS status
;
82 TRACE("NetRemoteTOD(%s, %p)\n", debugstr_w(UncServerName
),
89 status
= NetrRemoteTOD((SRVSVC_HANDLE
)UncServerName
,
90 (LPTIME_OF_DAY_INFO
*)BufferPtr
);
92 RpcExcept(EXCEPTION_EXECUTE_HANDLER
)
94 status
= I_RpcMapWin32Status(RpcExceptionCode());