mirror of
https://github.com/reactos/reactos.git
synced 2025-07-03 16:51:23 +00:00
Build services with NDK
svn path=/trunk/; revision=16183
This commit is contained in:
parent
5cc3617a10
commit
c618c35523
4 changed files with 10 additions and 22 deletions
|
@ -25,15 +25,10 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* 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.h"
|
||||||
|
#include <services/services.h>
|
||||||
|
|
||||||
|
#include <rosrtl/string.h>
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
|
@ -4,11 +4,6 @@
|
||||||
|
|
||||||
/* INCLUDES ****************************************************************/
|
/* INCLUDES ****************************************************************/
|
||||||
|
|
||||||
#define NTOS_MODE_USER
|
|
||||||
#include <ntos.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
#include "services.h"
|
#include "services.h"
|
||||||
#include "svcctl_s.h"
|
#include "svcctl_s.h"
|
||||||
|
|
||||||
|
|
|
@ -29,12 +29,6 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#define NTOS_MODE_USER
|
|
||||||
#include <ntos.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
#include "services.h"
|
#include "services.h"
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
|
@ -74,14 +68,14 @@ ScmCreateStartEvent(PHANDLE StartEvent)
|
||||||
hEvent = CreateEvent(NULL,
|
hEvent = CreateEvent(NULL,
|
||||||
TRUE,
|
TRUE,
|
||||||
FALSE,
|
FALSE,
|
||||||
_T("SvcctrlStartEvent_A3725DX"));
|
TEXT("SvcctrlStartEvent_A3725DX"));
|
||||||
if (hEvent == NULL)
|
if (hEvent == NULL)
|
||||||
{
|
{
|
||||||
if (GetLastError() == ERROR_ALREADY_EXISTS)
|
if (GetLastError() == ERROR_ALREADY_EXISTS)
|
||||||
{
|
{
|
||||||
hEvent = OpenEvent(EVENT_ALL_ACCESS,
|
hEvent = OpenEvent(EVENT_ALL_ACCESS,
|
||||||
FALSE,
|
FALSE,
|
||||||
_T("SvcctrlStartEvent_A3725DX"));
|
TEXT("SvcctrlStartEvent_A3725DX"));
|
||||||
if (hEvent == NULL)
|
if (hEvent == NULL)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -166,7 +160,7 @@ ScmCreateNamedPipe(VOID)
|
||||||
|
|
||||||
DPRINT("ScmCreateNamedPipe() - CreateNamedPipe(\"\\\\.\\pipe\\Ntsvcs\")\n");
|
DPRINT("ScmCreateNamedPipe() - CreateNamedPipe(\"\\\\.\\pipe\\Ntsvcs\")\n");
|
||||||
|
|
||||||
hPipe = CreateNamedPipe(_T("\\\\.\\pipe\\Ntsvcs"),
|
hPipe = CreateNamedPipe(TEXT("\\\\.\\pipe\\Ntsvcs"),
|
||||||
PIPE_ACCESS_DUPLEX,
|
PIPE_ACCESS_DUPLEX,
|
||||||
PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_WAIT,
|
PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_WAIT,
|
||||||
PIPE_UNLIMITED_INSTANCES,
|
PIPE_UNLIMITED_INSTANCES,
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
#include <windows.h>
|
||||||
|
#define NTOS_MODE_USER
|
||||||
|
#include <ndk/ntndk.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* services.h
|
* services.h
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue