couple of fixes to get it building under mingw
Modified: trunk/reactos/subsys/system/sc/query.c
Modified: trunk/reactos/subsys/system/sc/sc.c
Modified: trunk/reactos/subsys/system/sc/sc.xml
_____
Modified: trunk/reactos/subsys/system/sc/query.c
--- trunk/reactos/subsys/system/sc/query.c 2005-11-06 11:56:56 UTC
(rev 19026)
+++ trunk/reactos/subsys/system/sc/query.c 2005-11-06 13:30:42 UTC
(rev 19027)
@@ -13,7 +13,7 @@
/* local function decs */
VOID PrintService(BOOL bExtended);
-INT EnumServices(DWORD ServiceType, DWORD ServiceState);
+BOOL EnumServices(DWORD ServiceType, DWORD ServiceState);
/* global variables */
static ENUM_SERVICE_STATUS_PROCESS *pServiceStatus = NULL;
@@ -88,13 +88,15 @@
/* print default values */
PrintService(bExtended);
}
+
+ return TRUE;
}
-INT EnumServices(DWORD ServiceType, DWORD ServiceState)
+BOOL EnumServices(DWORD ServiceType, DWORD ServiceState)
{
- SC_HANDLE hSc;
+ //SC_HANDLE hSc;
DWORD BufSize = 0;
DWORD BytesNeeded = 0;
DWORD NumServices = 0;
@@ -144,6 +146,8 @@
return FALSE;
}
}
+
+ return TRUE;
}
_____
Modified: trunk/reactos/subsys/system/sc/sc.c
--- trunk/reactos/subsys/system/sc/sc.c 2005-11-06 11:56:56 UTC (rev
19026)
+++ trunk/reactos/subsys/system/sc/sc.c 2005-11-06 13:30:42 UTC (rev
19027)
@@ -62,7 +62,7 @@
hSCManager = OpenSCManager(MachineName, NULL,
SC_MANAGER_ALL_ACCESS);
if (hSCManager == NULL)
{
- _tprintf(_T("[SC] OpenSCManager FAILED %d:\n\n"),
GetLastError());
+ _tprintf(_T("[SC] OpenSCManager FAILED %lu:\n\n"),
GetLastError());
ReportLastError();
return -1;
}
@@ -134,7 +134,7 @@
}
-int _tmain(DWORD argc, LPCTSTR argv[])
+int _tmain(int argc, LPCTSTR argv[])
{
LPTSTR MachineName = NULL; // remote machine
LPCTSTR Command = NULL; // sc command
_____
Modified: trunk/reactos/subsys/system/sc/sc.xml
--- trunk/reactos/subsys/system/sc/sc.xml 2005-11-06 11:56:56 UTC
(rev 19026)
+++ trunk/reactos/subsys/system/sc/sc.xml 2005-11-06 13:30:42 UTC
(rev 19027)
@@ -3,8 +3,11 @@
<define name="DEFINE_GUID" />
<library>kernel32</library>
<file>sc.c</file>
- <file>manage.c</file>
+ <file>start.c</file>
<file>query.c</file>
+ <file>control.c</file>
+ <file>create.c</file>
+ <file>delete.c</file>
<file>usage.c</file>
<file>sc.rc</file>
</module>
Show replies by date