/* INCLUDES ******************************************************************/
+#define NTOS_MODE_USER
+#include <ntos.h>
#include <windows.h>
-#include <ddk/ntddk.h>
+#include <string.h>
+#include <wchar.h>
#define NDEBUG
#include <debug.h>
static ULONG ActiveServiceCount;
static PACTIVE_SERVICE ActiveServices;
-static PHANDLE ActiveServicesThreadHandles;
+/* static PHANDLE ActiveServicesThreadHandles; */ /* uncomment when in use */
/* FUNCTIONS *****************************************************************/
StartServiceCtrlDispatcherW(LPSERVICE_TABLE_ENTRYW lpServiceStartTable)
{
ULONG i;
- HANDLE h;
- DWORD Tid;
- DWORD r;
HANDLE hPipe;
DWORD dwError;
}
dwError = ScConnectControlPipe(&hPipe);
- if (dwError = ERROR_SUCCESS)
+ if (dwError == ERROR_SUCCESS)
{
/* FIXME: free the service table */
return(FALSE);