Build services with NDK

svn path=/trunk/; revision=16183
This commit is contained in:
Alex Ionescu 2005-06-20 21:04:03 +00:00
parent 5cc3617a10
commit c618c35523
4 changed files with 10 additions and 22 deletions

View file

@ -25,15 +25,10 @@
/* INCLUDES *****************************************************************/
#define NTOS_MODE_USER
#include <ntos.h>
#include <rosrtl/string.h>
#include <windows.h>
#include <tchar.h>
#include <services/services.h>
#include "services.h"
#include <services/services.h>
#include <rosrtl/string.h>
#define NDEBUG
#include <debug.h>

View file

@ -4,11 +4,6 @@
/* INCLUDES ****************************************************************/
#define NTOS_MODE_USER
#include <ntos.h>
#include <stdio.h>
#include <windows.h>
#include "services.h"
#include "svcctl_s.h"

View file

@ -29,12 +29,6 @@
/* INCLUDES *****************************************************************/
#define NTOS_MODE_USER
#include <ntos.h>
#include <stdio.h>
#include <tchar.h>
#include <windows.h>
#include "services.h"
#define NDEBUG
@ -74,14 +68,14 @@ ScmCreateStartEvent(PHANDLE StartEvent)
hEvent = CreateEvent(NULL,
TRUE,
FALSE,
_T("SvcctrlStartEvent_A3725DX"));
TEXT("SvcctrlStartEvent_A3725DX"));
if (hEvent == NULL)
{
if (GetLastError() == ERROR_ALREADY_EXISTS)
{
hEvent = OpenEvent(EVENT_ALL_ACCESS,
FALSE,
_T("SvcctrlStartEvent_A3725DX"));
TEXT("SvcctrlStartEvent_A3725DX"));
if (hEvent == NULL)
{
return FALSE;
@ -166,7 +160,7 @@ ScmCreateNamedPipe(VOID)
DPRINT("ScmCreateNamedPipe() - CreateNamedPipe(\"\\\\.\\pipe\\Ntsvcs\")\n");
hPipe = CreateNamedPipe(_T("\\\\.\\pipe\\Ntsvcs"),
hPipe = CreateNamedPipe(TEXT("\\\\.\\pipe\\Ntsvcs"),
PIPE_ACCESS_DUPLEX,
PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_WAIT,
PIPE_UNLIMITED_INSTANCES,

View file

@ -1,3 +1,7 @@
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
/*
* services.h
*/