2 * svcctl interface definitions - exported by services.exe to access the
5 * Copyright 2007 Google (Mikolaj Zalewski)
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25 * some defined for the C code
27 cpp_quote("#define SVCCTL_TRANSPORT {'n','c','a','c','n','_','n','p',0}")
28 cpp_quote("#define SVCCTL_ENDPOINT {'\\\\','p','i','p','e','\\\\','s','v','c','c','t','l',0}")
30 /* Not the Windows event name - if needed the true one can be found in Inside Windows */
31 cpp_quote("#define SVCCTL_STARTED_EVENT {'_','_','w','i','n','e','_','S','v','c','c','t','l','S','t','a','r','t','e','d',0}")
35 uuid(367abb81-9844-35f1-ad32-98f038001003),
37 pointer_default(unique),
38 endpoint("ncacn_np:[\\pipe\\svcctl]")
43 typedef [handle] LPCWSTR MACHINE_HANDLEW;
44 typedef [context_handle] void *SC_RPC_HANDLE;
46 /* Compatible with Windows function 0x00 */
47 DWORD svcctl_CloseServiceHandle(
48 [in,out] SC_RPC_HANDLE *handle
51 /* Compatible with Windows function 0x0f */
52 DWORD svcctl_OpenSCManagerW(
53 [in,unique] MACHINE_HANDLEW MachineName,
54 [in,unique] LPCWSTR DatabaseName,
55 [in] DWORD dwAccessMask,
56 [out] SC_RPC_HANDLE *handle