3 * Copyright (C) 2015 ReactOS Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS Services
22 * FILE: base/services/schedsvc/rpcserver.c
23 * PURPOSE: Scheduler service
24 * PROGRAMMER: Eric Kohl
27 /* INCLUDES *****************************************************************/
33 WINE_DEFAULT_DEBUG_CHANNEL(schedsvc
);
35 /* FUNCTIONS *****************************************************************/
44 Status
= RpcServerUseProtseqEpW(L
"ncacn_np", 20, L
"\\pipe\\atsvc", NULL
);
45 if (Status
!= RPC_S_OK
)
47 ERR("RpcServerUseProtseqEpW() failed (Status %lx)\n", Status
);
51 Status
= RpcServerRegisterIf(atsvc_v1_0_s_ifspec
, NULL
, NULL
);
52 if (Status
!= RPC_S_OK
)
54 ERR("RpcServerRegisterIf() failed (Status %lx)\n", Status
);
58 Status
= RpcServerListen(1, RPC_C_LISTEN_MAX_CALLS_DEFAULT
, FALSE
);
59 if (Status
!= RPC_S_OK
)
61 ERR("RpcServerListen() failed (Status %lx)\n", Status
);
68 void __RPC_FAR
* __RPC_USER
midl_user_allocate(SIZE_T len
)
70 return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY
, len
);
74 void __RPC_USER
midl_user_free(void __RPC_FAR
* ptr
)
76 HeapFree(GetProcessHeap(), 0, ptr
);
84 ATSVC_HANDLE ServerName
,
96 ATSVC_HANDLE ServerName
,
100 return ERROR_SUCCESS
;
108 ATSVC_HANDLE ServerName
,
109 LPAT_ENUM_CONTAINER pEnumContainer
,
110 DWORD PreferedMaximumLength
,
111 LPDWORD pTotalEntries
,
112 LPDWORD pResumeHandle
)
114 return ERROR_SUCCESS
;
122 ATSVC_HANDLE ServerName
,
126 return ERROR_SUCCESS
;