2012-10-25 20:40:41 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS Client/Server Runtime SubSystem
|
|
|
|
* FILE: subsystems/win32/csrsrv/srv.h
|
|
|
|
* PURPOSE: Main header - Definitions
|
|
|
|
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
|
|
|
|
* ReactOS Portable Systems Group
|
|
|
|
*/
|
|
|
|
|
2012-09-27 18:44:50 +00:00
|
|
|
#ifndef _SRV_H
|
|
|
|
#define _SRV_H
|
|
|
|
|
2005-07-01 03:03:06 +00:00
|
|
|
/* PSDK/NDK Headers */
|
2005-07-26 14:00:45 +00:00
|
|
|
#include <stdio.h>
|
2005-10-19 17:03:38 +00:00
|
|
|
#define WIN32_NO_STATUS
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
2013-01-28 22:45:53 +00:00
|
|
|
#define NTOS_MODE_USER
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <ndk/setypes.h>
|
|
|
|
#include <ndk/sefuncs.h>
|
|
|
|
#include <ndk/exfuncs.h>
|
|
|
|
#include <ndk/obfuncs.h>
|
|
|
|
#include <ndk/lpcfuncs.h>
|
|
|
|
#include <ndk/umfuncs.h>
|
2014-01-04 10:27:29 +00:00
|
|
|
#include <ndk/psfuncs.h>
|
|
|
|
#include <ndk/rtlfuncs.h>
|
2005-07-01 03:03:06 +00:00
|
|
|
|
2010-03-10 04:59:39 +00:00
|
|
|
/* CSR Header */
|
2012-10-22 00:09:51 +00:00
|
|
|
#include <csr/csrsrv.h>
|
2007-02-01 21:44:23 +00:00
|
|
|
|
2010-03-10 04:59:39 +00:00
|
|
|
/* PSEH for SEH Support */
|
|
|
|
#include <pseh/pseh2.h>
|
2005-07-01 03:03:06 +00:00
|
|
|
|
|
|
|
/* Subsystem Manager Header */
|
2012-02-08 21:56:23 +00:00
|
|
|
#include <sm/smmsg.h>
|
2005-07-01 03:03:06 +00:00
|
|
|
|
2012-10-23 22:31:36 +00:00
|
|
|
/* Internal CSRSS Header */
|
2013-03-09 21:08:23 +00:00
|
|
|
#include "api.h"
|
2012-02-15 16:11:12 +00:00
|
|
|
|
2012-10-22 00:09:51 +00:00
|
|
|
/* Defines */
|
2012-02-15 16:11:12 +00:00
|
|
|
#define SM_REG_KEY \
|
|
|
|
L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Session Manager"
|
|
|
|
|
|
|
|
#define SESSION_ROOT L"\\Sessions"
|
|
|
|
#define GLOBAL_ROOT L"\\GLOBAL??"
|
|
|
|
#define SYMLINK_NAME L"SymbolicLink"
|
2013-10-06 00:30:29 +00:00
|
|
|
#define SB_PORT_NAME L"SbApiPort"
|
2012-02-15 16:11:12 +00:00
|
|
|
#define CSR_PORT_NAME L"ApiPort"
|
|
|
|
#define UNICODE_PATH_SEP L"\\"
|
|
|
|
|
2011-08-05 00:50:51 +00:00
|
|
|
#define ROUND_UP(n, align) ROUND_DOWN(((ULONG)n) + (align) - 1, (align))
|
|
|
|
#define ROUND_DOWN(n, align) (((ULONG)n) & ~((align) - 1l))
|
2013-07-28 10:41:27 +00:00
|
|
|
#define InterlockedIncrementUL(Value) _InterlockedIncrement((PLONG)Value)
|
|
|
|
#define InterlockedDecrementUL(Value) _InterlockedDecrement((PLONG)Value)
|
2012-09-27 18:44:50 +00:00
|
|
|
|
2014-01-04 10:27:29 +00:00
|
|
|
#endif /* _SRV_H */
|