minor corrections by M.Taguchi
[reactos.git] / reactos / apps / utils / sc / setup.c
1 /*
2 * ReactOS SC - service control console program
3 *
4 * setup.c
5 *
6 * Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 #include <windows.h>
24 #include <wchar.h>
25 #include <tchar.h>
26 #include "main.h"
27
28 int sc_delete(char* argv[])
29 {
30 dprintf("sc_delete(%s) - not implemented.\n", argv[0]);
31 return 0;
32 }
33
34 int sc_boot(char* arg)
35 {
36 dprintf("sc_boot(%s) - not implemented.\n", arg);
37 return 0;
38 }
39
40 int sc_setup(SC_HANDLE hSCManager, SC_CMDS sc_cmd, char* argv[])
41 {
42 dprintf("sc_setup(%x, %d, %s) - called.\n", hSCManager, sc_cmd, argv[0]);
43
44 switch (sc_cmd) {
45 // case SC_CMD_DESCRIPTION:
46 // case SC_CMD_FAILURE:
47 case SC_CMD_DELETE:
48 return sc_delete(argv);
49 case SC_CMD_CREATE:
50 dprintf(" - not implemented.\n");
51 break;
52 // case SC_CMD_SDSHOW:
53 // case SC_CMD_SDSET:
54 case SC_CMD_BOOT:
55 return sc_boot(argv[0]);
56 default:
57 dprintf("sc_setup(%x, %d, %s) - unknown command.\n", hSCManager, sc_cmd, argv[0]);
58 break;
59 }
60 return 0;
61 }
62