mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 01:10:26 +00:00
Moved some Nt/Zw functions and types.
svn path=/trunk/; revision=7483
This commit is contained in:
parent
409b6b7682
commit
d4973a4ea4
19 changed files with 458 additions and 431 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: lpcclt.c,v 1.13 2003/11/17 02:12:48 hyperion Exp $
|
||||
/* $Id: lpcclt.c,v 1.14 2004/01/06 16:07:21 ekohl Exp $
|
||||
*
|
||||
* DESCRIPTION: Simple LPC Client
|
||||
* PROGRAMMER: David Welch
|
||||
|
@ -6,7 +6,6 @@
|
|||
#include <ddk/ntddk.h>
|
||||
#include <rosrtl/string.h>
|
||||
#include <windows.h>
|
||||
#include <napi/lpc.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: lpcsrv.c,v 1.13 2003/11/17 02:12:48 hyperion Exp $
|
||||
/* $Id: lpcsrv.c,v 1.14 2004/01/06 16:07:21 ekohl Exp $
|
||||
*
|
||||
* DESCRIPTION: Simple LPC Server
|
||||
* PROGRAMMER: David Welch
|
||||
|
@ -6,7 +6,6 @@
|
|||
#include <ddk/ntddk.h>
|
||||
#include <rosrtl/string.h>
|
||||
#include <windows.h>
|
||||
#include <napi/lpc.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define __INCLUDE_CSRSS_CSRSS_H
|
||||
|
||||
#include <windows.h>
|
||||
#include <napi/lpc.h>
|
||||
#include <ddk/ntddblue.h>
|
||||
#include <ntos/keyboard.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: lsass.h,v 1.5 2003/09/08 09:56:56 weiden Exp $
|
||||
/* $Id: lsass.h,v 1.6 2004/01/06 16:04:18 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -13,7 +13,6 @@
|
|||
|
||||
#include <ntos.h>
|
||||
#include <ntsecapi.h>
|
||||
#include <napi/lpc.h>
|
||||
|
||||
#define LSASS_REQUEST_REGISTER_LOGON_PROCESS (1)
|
||||
#define LSASS_REQUEST_CALL_AUTHENTICATION_PACKAGE (2)
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef __INCLUDE_NAPI_DBG_H
|
||||
#define __INCLUDE_NAPI_DBG_H
|
||||
|
||||
#include <napi/lpc.h>
|
||||
|
||||
#define DBG_EVENT_EXCEPTION (1)
|
||||
#define DBG_EVENT_CREATE_THREAD (2)
|
||||
#define DBG_EVENT_CREATE_PROCESS (3)
|
||||
|
@ -60,4 +58,11 @@ typedef struct _LPC_DBG_MESSAGE
|
|||
} Data;
|
||||
} LPC_DBG_MESSAGE, *PLPC_DBG_MESSAGE;
|
||||
|
||||
|
||||
typedef struct _LPC_TERMINATION_MESSAGE
|
||||
{
|
||||
LPC_MESSAGE Header;
|
||||
TIME CreationTime;
|
||||
} LPC_TERMINATION_MESSAGE, *PLPC_TERMINATION_MESSAGE;
|
||||
|
||||
#endif /* __INCLUDE_NAPI_DBG_H */
|
||||
|
|
|
@ -1,217 +0,0 @@
|
|||
#ifndef __INCLUDE_NAPI_LPC_H
|
||||
#define __INCLUDE_NAPI_LPC_H
|
||||
|
||||
#ifdef __USE_W32API
|
||||
#include <ddk/ntapi.h>
|
||||
#include <napi/types.h>
|
||||
#endif /* !__USE_W32API */
|
||||
|
||||
#include <ntos/security.h>
|
||||
|
||||
#define MAX_MESSAGE_DATA (0x130)
|
||||
|
||||
#ifndef __USE_W32API
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UNUSED_MSG_TYPE = 0x0, /* ReactOS */
|
||||
LPC_NEW_MESSAGE = 0x0, /* NT */
|
||||
LPC_REQUEST = 0x1,
|
||||
LPC_REPLY = 0x2,
|
||||
LPC_DATAGRAM = 0x3,
|
||||
LPC_LOST_REPLY = 0x4,
|
||||
LPC_PORT_CLOSED = 0x5,
|
||||
LPC_CLIENT_DIED = 0x6,
|
||||
LPC_EXCEPTION = 0x7,
|
||||
LPC_DEBUG_EVENT = 0x8,
|
||||
LPC_ERROR_EVENT = 0x9,
|
||||
LPC_CONNECTION_REQUEST = 0xa,
|
||||
LPC_CONNECTION_REFUSED = 0xb
|
||||
|
||||
} LPC_TYPE, *PLPC_TYPE;
|
||||
|
||||
typedef struct _LPC_SECTION_WRITE
|
||||
{
|
||||
ULONG Length;
|
||||
HANDLE SectionHandle;
|
||||
ULONG SectionOffset;
|
||||
ULONG ViewSize;
|
||||
PVOID ViewBase;
|
||||
PVOID TargetViewBase;
|
||||
} LPC_SECTION_WRITE, *PLPC_SECTION_WRITE;
|
||||
|
||||
typedef struct _LPC_SECTION_READ
|
||||
{
|
||||
ULONG Length;
|
||||
ULONG ViewSize;
|
||||
PVOID ViewBase;
|
||||
} LPC_SECTION_READ, *PLPC_SECTION_READ;
|
||||
|
||||
typedef struct _LPC_MESSAGE
|
||||
{
|
||||
USHORT DataSize;
|
||||
USHORT MessageSize;
|
||||
USHORT MessageType;
|
||||
USHORT VirtualRangesOffset;
|
||||
CLIENT_ID ClientId;
|
||||
ULONG MessageId;
|
||||
ULONG SectionSize; /* CallbackID */
|
||||
} LPC_MESSAGE, *PLPC_MESSAGE;
|
||||
|
||||
#endif /* !__USE_W32API */
|
||||
|
||||
|
||||
typedef struct _LPC_TERMINATION_MESSAGE
|
||||
{
|
||||
LPC_MESSAGE Header;
|
||||
TIME CreationTime;
|
||||
} LPC_TERMINATION_MESSAGE, *PLPC_TERMINATION_MESSAGE;
|
||||
|
||||
typedef struct _LPC_DEBUG_MESSAGE
|
||||
{
|
||||
LPC_MESSAGE Header;
|
||||
ULONG EventCode;
|
||||
ULONG Status;
|
||||
union {
|
||||
struct {
|
||||
EXCEPTION_RECORD ExceptionRecord;
|
||||
ULONG FirstChance;
|
||||
} Exception;
|
||||
struct {
|
||||
ULONG Reserved;
|
||||
PVOID StartAddress;
|
||||
} CreateThread;
|
||||
struct {
|
||||
ULONG Reserved;
|
||||
HANDLE FileHandle;
|
||||
PVOID Base;
|
||||
ULONG PointerToSymbolTable;
|
||||
ULONG NumberOfSymbols;
|
||||
ULONG Reserved2;
|
||||
PVOID EntryPoint;
|
||||
} CreateProcess;
|
||||
struct {
|
||||
ULONG ExitCode;
|
||||
} ExitThread;
|
||||
struct {
|
||||
ULONG ExitCode;
|
||||
} ExitProcess;
|
||||
struct {
|
||||
HANDLE FileHandle;
|
||||
PVOID Base;
|
||||
ULONG PointerToSymbolTable;
|
||||
ULONG NumberOfSymbols;
|
||||
} LoadDll;
|
||||
struct {
|
||||
PVOID Base;
|
||||
} UnloadDll;
|
||||
#ifdef ANONYMOUSUNIONS
|
||||
};
|
||||
#else
|
||||
} u;
|
||||
#endif
|
||||
} LPC_DEBUG_MESSAGE, * PLPC_DEBUG_MESSAGE;
|
||||
|
||||
typedef struct _LPC_MAX_MESSAGE
|
||||
{
|
||||
LPC_MESSAGE Header;
|
||||
BYTE Data[MAX_MESSAGE_DATA];
|
||||
} LPC_MAX_MESSAGE, *PLPC_MAX_MESSAGE;
|
||||
|
||||
#define PORT_MESSAGE_TYPE(m) (LPC_TYPE)((m).Header.MessageType)
|
||||
|
||||
#ifndef __USE_NT_LPC__
|
||||
NTSTATUS STDCALL NtAcceptConnectPort (PHANDLE PortHandle,
|
||||
HANDLE NamedPortHandle,
|
||||
PLPC_MESSAGE ServerReply,
|
||||
BOOLEAN AcceptIt,
|
||||
PLPC_SECTION_WRITE WriteMap,
|
||||
PLPC_SECTION_READ ReadMap);
|
||||
#else
|
||||
NTSTATUS STDCALL NtAcceptConnectPort (PHANDLE PortHandle,
|
||||
ULONG PortIdentifier,
|
||||
PLPC_MESSAGE ServerReply,
|
||||
BOOLEAN AcceptIt,
|
||||
PLPC_SECTION_WRITE WriteMap,
|
||||
PLPC_SECTION_READ ReadMap);
|
||||
#endif /* ndef __USE_NT_LPC__ */
|
||||
|
||||
NTSTATUS STDCALL NtCompleteConnectPort (HANDLE PortHandle);
|
||||
|
||||
NTSTATUS STDCALL NtConnectPort(PHANDLE PortHandle,
|
||||
PUNICODE_STRING PortName,
|
||||
PSECURITY_QUALITY_OF_SERVICE SecurityQos,
|
||||
PLPC_SECTION_WRITE SectionInfo,
|
||||
PLPC_SECTION_READ MapInfo,
|
||||
PULONG MaxMessageSize,
|
||||
PVOID ConnectInfo,
|
||||
PULONG ConnectInfoLength);
|
||||
|
||||
NTSTATUS STDCALL NtReplyWaitReplyPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE ReplyMessage);
|
||||
|
||||
NTSTATUS STDCALL NtCreatePort(PHANDLE PortHandle,
|
||||
POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
ULONG MaxConnectInfoLength,
|
||||
ULONG MaxDataLength,
|
||||
ULONG NPMessageQueueSize OPTIONAL);
|
||||
|
||||
NTSTATUS STDCALL NtCreateWaitablePort(PHANDLE PortHandle,
|
||||
POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
ULONG MaxConnectInfoLength,
|
||||
ULONG MaxDataLength,
|
||||
ULONG NPMessageQueueSize OPTIONAL);
|
||||
|
||||
NTSTATUS STDCALL NtImpersonateClientOfPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE ClientMessage);
|
||||
|
||||
NTSTATUS STDCALL NtListenPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcMessage);
|
||||
|
||||
NTSTATUS STDCALL NtQueryInformationPort (HANDLE PortHandle,
|
||||
CINT PortInformationClass,
|
||||
PVOID PortInformation,
|
||||
ULONG PortInformationLength,
|
||||
PULONG ReturnLength);
|
||||
NTSTATUS STDCALL NtReplyPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcReply);
|
||||
NTSTATUS STDCALL NtReplyWaitReceivePort (HANDLE PortHandle,
|
||||
PULONG PortId,
|
||||
PLPC_MESSAGE MessageReply,
|
||||
PLPC_MESSAGE MessageRequest);
|
||||
NTSTATUS STDCALL NtRequestPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcMessage);
|
||||
|
||||
NTSTATUS STDCALL NtRequestWaitReplyPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcReply,
|
||||
PLPC_MESSAGE LpcRequest);
|
||||
|
||||
NTSTATUS STDCALL NtReadRequestData (HANDLE PortHandle,
|
||||
PLPC_MESSAGE Message,
|
||||
ULONG Index,
|
||||
PVOID Buffer,
|
||||
ULONG BufferLength,
|
||||
PULONG ReturnLength);
|
||||
|
||||
NTSTATUS STDCALL NtWriteRequestData (HANDLE PortHandle,
|
||||
PLPC_MESSAGE Message,
|
||||
ULONG Index,
|
||||
PVOID Buffer,
|
||||
ULONG BufferLength,
|
||||
PULONG ReturnLength);
|
||||
|
||||
NTSTATUS STDCALL ZwConnectPort(PHANDLE PortHandle,
|
||||
PUNICODE_STRING PortName,
|
||||
PSECURITY_QUALITY_OF_SERVICE SecurityQos,
|
||||
PLPC_SECTION_WRITE SectionInfo,
|
||||
PLPC_SECTION_READ MapInfo,
|
||||
PULONG MaxMessageSize,
|
||||
PVOID ConnectInfo,
|
||||
PULONG ConnectInfoLength);
|
||||
|
||||
NTSTATUS STDCALL ZwRequestWaitReplyPort(HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcReply,
|
||||
PLPC_MESSAGE LpcRequest);
|
||||
|
||||
|
||||
#endif /* __INCLUDE_NAPI_LPC_H */
|
|
@ -5,84 +5,6 @@
|
|||
#error you must not include <napi/npipe.h> directly, include <ddk/ntddk.h> instead
|
||||
#endif /* __NTDDK_H */
|
||||
|
||||
/*
|
||||
* FUNCTION: ZwCreateNamedPipeFile creates named pipe
|
||||
* ARGUMENTS:
|
||||
* NamedPipeFileHandle (OUT) = Caller supplied storage for the
|
||||
* resulting handle
|
||||
* DesiredAccess = Specifies the type of access that the caller
|
||||
* requires to the file boject
|
||||
* ObjectAttributes = Points to a structure that specifies the
|
||||
* object attributes.
|
||||
* IoStatusBlock = Points to a variable that receives the final
|
||||
* completion status and information
|
||||
* ShareAccess = Specifies the limitations on sharing of the file.
|
||||
* This parameter can be zero or any compatible
|
||||
* combination of the following flags
|
||||
* FILE_SHARE_READ
|
||||
* FILE_SHARE_WRITE
|
||||
* CreateDisposition = Specifies what to do depending on whether
|
||||
* the file already exists. This must be one of
|
||||
* the following values
|
||||
* FILE_OPEN
|
||||
* FILE_CREATE
|
||||
* FILE_OPEN_IF
|
||||
* CreateOptions = Specifies the options to be applied when
|
||||
* creating or opening the file, as a compatible
|
||||
* combination of the following flags
|
||||
* FILE_WRITE_THROUGH
|
||||
* FILE_SYNCHRONOUS_IO_ALERT
|
||||
* FILE_SYNCHRONOUS_IO_NONALERT
|
||||
* TypeMessage = Specifies whether the data written to the pipe is
|
||||
* interpreted as a sequence of messages or as a
|
||||
* stream of bytes
|
||||
* ReadModeMessage = Specifies whether the data read from the pipe
|
||||
* is interpreted as a sequence of messages or as
|
||||
* a stream of bytes
|
||||
* NonBlocking = Specifies whether non-blocking mode is enabled
|
||||
* MaxInstances = Specifies the maximum number of instancs that can
|
||||
* be created for this pipe
|
||||
* InBufferSize = Specifies the number of bytes to reserve for the
|
||||
* input buffer
|
||||
* OutBufferSize = Specifies the number of bytes to reserve for the
|
||||
* output buffer
|
||||
* DefaultTimeout = Optionally points to a variable that specifies
|
||||
* the default timeout value in units of
|
||||
* 100-nanoseconds.
|
||||
* REMARKS: This funciton maps to the win32 function CreateNamedPipe
|
||||
* RETURNS:
|
||||
* Status
|
||||
*/
|
||||
|
||||
NTSTATUS STDCALL NtCreateNamedPipeFile(OUT PHANDLE NamedPipeFileHandle,
|
||||
IN ACCESS_MASK DesiredAccess,
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
OUT PIO_STATUS_BLOCK IoStatusBlock,
|
||||
IN ULONG ShareAccess,
|
||||
IN ULONG CreateDisposition,
|
||||
IN ULONG CreateOptions,
|
||||
IN BOOLEAN WriteModeMessage,
|
||||
IN BOOLEAN ReadModeMessage,
|
||||
IN BOOLEAN NonBlocking,
|
||||
IN ULONG MaxInstances,
|
||||
IN ULONG InBufferSize,
|
||||
IN ULONG OutBufferSize,
|
||||
IN PLARGE_INTEGER DefaultTimeOut);
|
||||
NTSTATUS STDCALL ZwCreateNamedPipeFile(OUT PHANDLE NamedPipeFileHandle,
|
||||
IN ACCESS_MASK DesiredAccess,
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
OUT PIO_STATUS_BLOCK IoStatusBlock,
|
||||
IN ULONG ShareAccess,
|
||||
IN ULONG CreateDisposition,
|
||||
IN ULONG CreateOptions,
|
||||
IN BOOLEAN WriteModeMessage,
|
||||
IN BOOLEAN ReadModeMessage,
|
||||
IN BOOLEAN NonBlocking,
|
||||
IN ULONG MaxInstances,
|
||||
IN ULONG InBufferSize,
|
||||
IN ULONG OutBufferSize,
|
||||
IN PLARGE_INTEGER DefaultTimeOut);
|
||||
|
||||
#define FSCTL_PIPE_ASSIGN_EVENT \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef _NTOS_H
|
||||
#define _NTOS_H
|
||||
/* $Id: ntos.h,v 1.17 2003/10/15 21:15:18 ekohl Exp $ */
|
||||
/* $Id: ntos.h,v 1.18 2004/01/06 16:05:47 ekohl Exp $ */
|
||||
|
||||
#if defined(NTOS_MODE_USER)
|
||||
/*
|
||||
|
@ -32,7 +32,6 @@
|
|||
#include "napi/i386/segment.h"
|
||||
#include "napi/types.h"
|
||||
#include "napi/dbg.h"
|
||||
#include "napi/lpc.h"
|
||||
#include "napi/npipe.h"
|
||||
#include "napi/shared_data.h"
|
||||
#include "napi/win32.h"
|
||||
|
@ -74,7 +73,6 @@
|
|||
#include "napi/i386/segment.h"
|
||||
#include "napi/types.h"
|
||||
#include "napi/dbg.h"
|
||||
#include "napi/lpc.h"
|
||||
#include "napi/npipe.h"
|
||||
#include "napi/shared_data.h"
|
||||
#include "napi/win32.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
/* $Id: zw.h,v 1.20 2003/11/21 18:42:05 navaraf Exp $
|
||||
/* $Id: zw.h,v 1.21 2004/01/06 15:57:48 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -57,6 +57,24 @@ typedef struct _EVENT_BASIC_INFORMATION
|
|||
//#define SECURITY_INFORMATION ULONG
|
||||
//typedef ULONG SECURITY_INFORMATION;
|
||||
|
||||
#ifndef __USE_NT_LPC__
|
||||
NTSTATUS STDCALL
|
||||
NtAcceptConnectPort (PHANDLE PortHandle,
|
||||
HANDLE NamedPortHandle,
|
||||
PLPC_MESSAGE ServerReply,
|
||||
BOOLEAN AcceptIt,
|
||||
PLPC_SECTION_WRITE WriteMap,
|
||||
PLPC_SECTION_READ ReadMap);
|
||||
#else
|
||||
NTSTATUS STDCALL
|
||||
NtAcceptConnectPort (PHANDLE PortHandle,
|
||||
ULONG PortIdentifier,
|
||||
PLPC_MESSAGE ServerReply,
|
||||
BOOLEAN AcceptIt,
|
||||
PLPC_SECTION_WRITE WriteMap,
|
||||
PLPC_SECTION_READ ReadMap);
|
||||
#endif /* ndef __USE_NT_LPC__ */
|
||||
|
||||
/*
|
||||
* FUNCTION: Adjusts the groups in an access token
|
||||
* ARGUMENTS:
|
||||
|
@ -344,6 +362,34 @@ ZwCloseObjectAuditAlarm(
|
|||
IN BOOLEAN GenerateOnClose
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtCompleteConnectPort (HANDLE PortHandle);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwCompleteConnectPort (HANDLE PortHandle);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtConnectPort (PHANDLE PortHandle,
|
||||
PUNICODE_STRING PortName,
|
||||
PSECURITY_QUALITY_OF_SERVICE SecurityQos,
|
||||
PLPC_SECTION_WRITE SectionInfo,
|
||||
PLPC_SECTION_READ MapInfo,
|
||||
PULONG MaxMessageSize,
|
||||
PVOID ConnectInfo,
|
||||
PULONG ConnectInfoLength);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwConnectPort (PHANDLE PortHandle,
|
||||
PUNICODE_STRING PortName,
|
||||
PSECURITY_QUALITY_OF_SERVICE SecurityQos,
|
||||
PLPC_SECTION_WRITE SectionInfo,
|
||||
PLPC_SECTION_READ MapInfo,
|
||||
PULONG MaxMessageSize,
|
||||
PVOID ConnectInfo,
|
||||
PULONG ConnectInfoLength);
|
||||
|
||||
/*
|
||||
* FUNCTION: Creates a directory object
|
||||
* ARGUMENTS:
|
||||
|
@ -633,6 +679,102 @@ ZwCreateMutant(
|
|||
IN BOOLEAN InitialOwner
|
||||
);
|
||||
|
||||
/*
|
||||
* FUNCTION: Creates a named pipe
|
||||
* ARGUMENTS:
|
||||
* NamedPipeFileHandle (OUT) = Caller supplied storage for the
|
||||
* resulting handle
|
||||
* DesiredAccess = Specifies the type of access that the caller
|
||||
* requires to the file boject
|
||||
* ObjectAttributes = Points to a structure that specifies the
|
||||
* object attributes.
|
||||
* IoStatusBlock = Points to a variable that receives the final
|
||||
* completion status and information
|
||||
* ShareAccess = Specifies the limitations on sharing of the file.
|
||||
* This parameter can be zero or any compatible
|
||||
* combination of the following flags
|
||||
* FILE_SHARE_READ
|
||||
* FILE_SHARE_WRITE
|
||||
* CreateDisposition = Specifies what to do depending on whether
|
||||
* the file already exists. This must be one of
|
||||
* the following values
|
||||
* FILE_OPEN
|
||||
* FILE_CREATE
|
||||
* FILE_OPEN_IF
|
||||
* CreateOptions = Specifies the options to be applied when
|
||||
* creating or opening the file, as a compatible
|
||||
* combination of the following flags
|
||||
* FILE_WRITE_THROUGH
|
||||
* FILE_SYNCHRONOUS_IO_ALERT
|
||||
* FILE_SYNCHRONOUS_IO_NONALERT
|
||||
* TypeMessage = Specifies whether the data written to the pipe is
|
||||
* interpreted as a sequence of messages or as a
|
||||
* stream of bytes
|
||||
* ReadModeMessage = Specifies whether the data read from the pipe
|
||||
* is interpreted as a sequence of messages or as
|
||||
* a stream of bytes
|
||||
* NonBlocking = Specifies whether non-blocking mode is enabled
|
||||
* MaxInstances = Specifies the maximum number of instancs that can
|
||||
* be created for this pipe
|
||||
* InBufferSize = Specifies the number of bytes to reserve for the
|
||||
* input buffer
|
||||
* OutBufferSize = Specifies the number of bytes to reserve for the
|
||||
* output buffer
|
||||
* DefaultTimeout = Optionally points to a variable that specifies
|
||||
* the default timeout value in units of
|
||||
* 100-nanoseconds.
|
||||
* REMARKS: This funciton maps to the win32 function CreateNamedPipe
|
||||
* RETURNS:
|
||||
* Status
|
||||
*/
|
||||
NTSTATUS STDCALL
|
||||
NtCreateNamedPipeFile (OUT PHANDLE NamedPipeFileHandle,
|
||||
IN ACCESS_MASK DesiredAccess,
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
OUT PIO_STATUS_BLOCK IoStatusBlock,
|
||||
IN ULONG ShareAccess,
|
||||
IN ULONG CreateDisposition,
|
||||
IN ULONG CreateOptions,
|
||||
IN BOOLEAN WriteModeMessage,
|
||||
IN BOOLEAN ReadModeMessage,
|
||||
IN BOOLEAN NonBlocking,
|
||||
IN ULONG MaxInstances,
|
||||
IN ULONG InBufferSize,
|
||||
IN ULONG OutBufferSize,
|
||||
IN PLARGE_INTEGER DefaultTimeOut);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwCreateNamedPipeFile (OUT PHANDLE NamedPipeFileHandle,
|
||||
IN ACCESS_MASK DesiredAccess,
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
OUT PIO_STATUS_BLOCK IoStatusBlock,
|
||||
IN ULONG ShareAccess,
|
||||
IN ULONG CreateDisposition,
|
||||
IN ULONG CreateOptions,
|
||||
IN BOOLEAN WriteModeMessage,
|
||||
IN BOOLEAN ReadModeMessage,
|
||||
IN BOOLEAN NonBlocking,
|
||||
IN ULONG MaxInstances,
|
||||
IN ULONG InBufferSize,
|
||||
IN ULONG OutBufferSize,
|
||||
IN PLARGE_INTEGER DefaultTimeOut);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtCreatePort (PHANDLE PortHandle,
|
||||
POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
ULONG MaxConnectInfoLength,
|
||||
ULONG MaxDataLength,
|
||||
ULONG NPMessageQueueSize OPTIONAL);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtCreatePort (PHANDLE PortHandle,
|
||||
POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
ULONG MaxConnectInfoLength,
|
||||
ULONG MaxDataLength,
|
||||
ULONG NPMessageQueueSize OPTIONAL);
|
||||
|
||||
|
||||
/*
|
||||
* FUNCTION: Creates a process.
|
||||
* ARGUMENTS:
|
||||
|
@ -649,8 +791,8 @@ ZwCreateMutant(
|
|||
* This function maps to the win32 CreateProcess.
|
||||
* RETURNS: Status
|
||||
*/
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NtCreateProcess(
|
||||
OUT PHANDLE ProcessHandle,
|
||||
IN ACCESS_MASK DesiredAccess,
|
||||
|
@ -662,8 +804,8 @@ NtCreateProcess(
|
|||
IN HANDLE ExceptionPort OPTIONAL
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ZwCreateProcess(
|
||||
OUT PHANDLE ProcessHandle,
|
||||
IN ACCESS_MASK DesiredAccess,
|
||||
|
@ -692,11 +834,11 @@ ZwCreateProcess(
|
|||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NtCreateSection(
|
||||
OUT PHANDLE SectionHandle,
|
||||
NtCreateSection(
|
||||
OUT PHANDLE SectionHandle,
|
||||
IN ACCESS_MASK DesiredAccess,
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
|
||||
IN PLARGE_INTEGER MaximumSize OPTIONAL,
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
|
||||
IN PLARGE_INTEGER MaximumSize OPTIONAL,
|
||||
IN ULONG SectionPageProtection OPTIONAL,
|
||||
IN ULONG AllocationAttributes,
|
||||
IN HANDLE FileHandle OPTIONAL
|
||||
|
@ -704,11 +846,11 @@ NtCreateSection(
|
|||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ZwCreateSection(
|
||||
OUT PHANDLE SectionHandle,
|
||||
ZwCreateSection(
|
||||
OUT PHANDLE SectionHandle,
|
||||
IN ACCESS_MASK DesiredAccess,
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
|
||||
IN PLARGE_INTEGER MaximumSize OPTIONAL,
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
|
||||
IN PLARGE_INTEGER MaximumSize OPTIONAL,
|
||||
IN ULONG SectionPageProtection OPTIONAL,
|
||||
IN ULONG AllocationAttributes,
|
||||
IN HANDLE FileHandle OPTIONAL
|
||||
|
@ -874,6 +1016,22 @@ NtCurrentTeb(VOID
|
|||
);
|
||||
#endif
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtCreateWaitablePort (PHANDLE PortHandle,
|
||||
POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
ULONG MaxConnectInfoLength,
|
||||
ULONG MaxDataLength,
|
||||
ULONG NPMessageQueueSize OPTIONAL);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwCreateWaitablePort (PHANDLE PortHandle,
|
||||
POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
ULONG MaxConnectInfoLength,
|
||||
ULONG MaxDataLength,
|
||||
ULONG NPMessageQueueSize OPTIONAL);
|
||||
|
||||
|
||||
/*
|
||||
* FUNCTION: Deletes an atom from the global atom table
|
||||
* ARGUMENTS:
|
||||
|
@ -1256,17 +1414,26 @@ ZwFsControlFile(
|
|||
NTSTATUS
|
||||
STDCALL
|
||||
NtGetContextThread(
|
||||
IN HANDLE ThreadHandle,
|
||||
IN HANDLE ThreadHandle,
|
||||
OUT PCONTEXT Context
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ZwGetContextThread(
|
||||
IN HANDLE ThreadHandle,
|
||||
IN HANDLE ThreadHandle,
|
||||
OUT PCONTEXT Context
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtImpersonateClientOfPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE ClientMessage);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwImpersonateClientOfPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE ClientMessage);
|
||||
|
||||
/*
|
||||
* FUNCTION: Sets a thread to impersonate another
|
||||
* ARGUMENTS:
|
||||
|
@ -1309,6 +1476,16 @@ ZwInitializeRegistry(
|
|||
BOOLEAN SetUpBoot
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtListenPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcMessage);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwListenPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcMessage);
|
||||
|
||||
|
||||
/*
|
||||
* FUNCTION: Loads a driver.
|
||||
* ARGUMENTS:
|
||||
|
@ -2288,6 +2465,22 @@ ZwQueryInformationFile(
|
|||
);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtQueryInformationPort (HANDLE PortHandle,
|
||||
CINT PortInformationClass,
|
||||
PVOID PortInformation,
|
||||
ULONG PortInformationLength,
|
||||
PULONG ReturnLength);
|
||||
|
||||
#ifndef __USE_W32API
|
||||
NTSTATUS STDCALL
|
||||
ZwQueryInformationPort (HANDLE PortHandle,
|
||||
CINT PortInformationClass,
|
||||
PVOID PortInformation,
|
||||
ULONG PortInformationLength,
|
||||
PULONG ReturnLength);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* FUNCTION: Queries the information of a thread object.
|
||||
* ARGUMENTS:
|
||||
|
@ -2858,34 +3051,53 @@ ZwReadFile(
|
|||
Key = Key = If a range is lock a matching key will allow the read to continue.
|
||||
* RETURNS: Status
|
||||
*
|
||||
*/
|
||||
*/
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NtReadFileScatter(
|
||||
IN HANDLE FileHandle,
|
||||
IN HANDLE Event OPTIONAL,
|
||||
IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
|
||||
IN PVOID UserApcContext OPTIONAL,
|
||||
OUT PIO_STATUS_BLOCK UserIoStatusBlock,
|
||||
IN FILE_SEGMENT_ELEMENT BufferDescription[],
|
||||
IN ULONG BufferLength,
|
||||
IN PLARGE_INTEGER ByteOffset,
|
||||
IN PULONG Key OPTIONAL
|
||||
);
|
||||
NtReadFileScatter(
|
||||
IN HANDLE FileHandle,
|
||||
IN HANDLE Event OPTIONAL,
|
||||
IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
|
||||
IN PVOID UserApcContext OPTIONAL,
|
||||
OUT PIO_STATUS_BLOCK UserIoStatusBlock,
|
||||
IN FILE_SEGMENT_ELEMENT BufferDescription[],
|
||||
IN ULONG BufferLength,
|
||||
IN PLARGE_INTEGER ByteOffset,
|
||||
IN PULONG Key OPTIONAL
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ZwReadFileScatter(
|
||||
IN HANDLE FileHandle,
|
||||
IN HANDLE Event OPTIONAL,
|
||||
IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
|
||||
IN PVOID UserApcContext OPTIONAL,
|
||||
OUT PIO_STATUS_BLOCK UserIoStatusBlock,
|
||||
IN FILE_SEGMENT_ELEMENT BufferDescription[],
|
||||
IN ULONG BufferLength,
|
||||
IN PLARGE_INTEGER ByteOffset,
|
||||
IN PULONG Key OPTIONAL
|
||||
);
|
||||
ZwReadFileScatter(
|
||||
IN HANDLE FileHandle,
|
||||
IN HANDLE Event OPTIONAL,
|
||||
IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
|
||||
IN PVOID UserApcContext OPTIONAL,
|
||||
OUT PIO_STATUS_BLOCK UserIoStatusBlock,
|
||||
IN FILE_SEGMENT_ELEMENT BufferDescription[],
|
||||
IN ULONG BufferLength,
|
||||
IN PLARGE_INTEGER ByteOffset,
|
||||
IN PULONG Key OPTIONAL
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtReadRequestData (HANDLE PortHandle,
|
||||
PLPC_MESSAGE Message,
|
||||
ULONG Index,
|
||||
PVOID Buffer,
|
||||
ULONG BufferLength,
|
||||
PULONG ReturnLength);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwReadRequestData (HANDLE PortHandle,
|
||||
PLPC_MESSAGE Message,
|
||||
ULONG Index,
|
||||
PVOID Buffer,
|
||||
ULONG BufferLength,
|
||||
PULONG ReturnLength);
|
||||
|
||||
|
||||
/*
|
||||
* FUNCTION: Copies a range of virtual memory to a buffer
|
||||
* ARGUMENTS:
|
||||
|
@ -3020,18 +3232,69 @@ ZwRemoveIoCompletion(
|
|||
NTSTATUS
|
||||
STDCALL
|
||||
NtReplaceKey(
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
IN HANDLE Key,
|
||||
IN POBJECT_ATTRIBUTES ReplacedObjectAttributes
|
||||
IN POBJECT_ATTRIBUTES ReplacedObjectAttributes
|
||||
);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ZwReplaceKey(
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
IN HANDLE Key,
|
||||
IN POBJECT_ATTRIBUTES ReplacedObjectAttributes
|
||||
IN POBJECT_ATTRIBUTES ReplacedObjectAttributes
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtReplyPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcReply);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwReplyPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcReply);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtReplyWaitReceivePort (HANDLE PortHandle,
|
||||
PULONG PortId,
|
||||
PLPC_MESSAGE MessageReply,
|
||||
PLPC_MESSAGE MessageRequest);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwReplyWaitReceivePort (HANDLE PortHandle,
|
||||
PULONG PortId,
|
||||
PLPC_MESSAGE MessageReply,
|
||||
PLPC_MESSAGE MessageRequest);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtReplyWaitReplyPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE ReplyMessage);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwReplyWaitReplyPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE ReplyMessage);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtRequestPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcMessage);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwRequestPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcMessage);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtRequestWaitReplyPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcReply,
|
||||
PLPC_MESSAGE LpcRequest);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwRequestWaitReplyPort (HANDLE PortHandle,
|
||||
PLPC_MESSAGE LpcReply,
|
||||
PLPC_MESSAGE LpcRequest);
|
||||
|
||||
/*
|
||||
* FUNCTION: Resets a event to a non signaled state
|
||||
* ARGUMENTS:
|
||||
|
@ -3705,12 +3968,36 @@ ZwShutdownSystem(
|
|||
IN SHUTDOWN_ACTION Action
|
||||
);
|
||||
|
||||
/*
|
||||
* FUNCTION: Signals an object and wait for an other one.
|
||||
* ARGUMENTS:
|
||||
* SignalObject = Handle to the object that should be signaled
|
||||
* WaitObject = Handle to the object that should be waited for
|
||||
* Alertable = True if the wait is alertable
|
||||
* Time = The time to wait
|
||||
* RETURNS: Status
|
||||
*/
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NtSignalAndWaitForSingleObject(
|
||||
IN HANDLE SignalObject,
|
||||
IN HANDLE WaitObject,
|
||||
IN BOOLEAN Alertable,
|
||||
IN PLARGE_INTEGER Time
|
||||
);
|
||||
|
||||
/* --- PROFILING --- */
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NtSignalAndWaitForSingleObject(
|
||||
IN HANDLE SignalObject,
|
||||
IN HANDLE WaitObject,
|
||||
IN BOOLEAN Alertable,
|
||||
IN PLARGE_INTEGER Time
|
||||
);
|
||||
|
||||
/*
|
||||
* FUNCTION: Starts profiling
|
||||
* ARGUMENTS:
|
||||
* ARGUMENTS:
|
||||
* ProfileHandle = Handle to the profile
|
||||
* RETURNS: Status
|
||||
*/
|
||||
|
@ -3729,9 +4016,9 @@ ZwStartProfile(
|
|||
|
||||
/*
|
||||
* FUNCTION: Stops profiling
|
||||
* ARGUMENTS:
|
||||
* ARGUMENTS:
|
||||
* ProfileHandle = Handle to the profile
|
||||
* RETURNS: Status
|
||||
* RETURNS: Status
|
||||
*/
|
||||
|
||||
NTSTATUS
|
||||
|
@ -3755,26 +4042,24 @@ ZwStopProfile(
|
|||
* ThreadHandle = Handle to the process
|
||||
* ExitStatus = The exit status of the process to terminate with.
|
||||
* REMARKS
|
||||
Native applications should kill themselves using this function.
|
||||
* Native applications should kill themselves using this function.
|
||||
* RETURNS: Status
|
||||
*/
|
||||
*/
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NtTerminateProcess(
|
||||
IN HANDLE ProcessHandle ,
|
||||
IN HANDLE ProcessHandle,
|
||||
IN NTSTATUS ExitStatus
|
||||
);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ZwTerminateProcess(
|
||||
IN HANDLE ProcessHandle ,
|
||||
IN HANDLE ProcessHandle,
|
||||
IN NTSTATUS ExitStatus
|
||||
);
|
||||
|
||||
/* --- DEVICE DRIVER CONTROL --- */
|
||||
|
||||
/*
|
||||
* FUNCTION: Unloads a driver.
|
||||
* FUNCTION: Unloads a driver.
|
||||
* ARGUMENTS:
|
||||
* DriverServiceName = Name of the driver to unload
|
||||
* RETURNS: Status
|
||||
|
@ -3790,7 +4075,45 @@ ZwUnloadDriver(
|
|||
IN PUNICODE_STRING DriverServiceName
|
||||
);
|
||||
|
||||
/* --- VIRTUAL MEMORY MANAGEMENT --- */
|
||||
/*
|
||||
* FUNCTION: Unmaps a piece of virtual memory backed by a file.
|
||||
* ARGUMENTS:
|
||||
* ProcessHandle = Handle to the process
|
||||
* BaseAddress = The address where the mapping begins
|
||||
* REMARK:
|
||||
This procedure maps to the win32 UnMapViewOfFile
|
||||
* RETURNS: Status
|
||||
*/
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NtUnmapViewOfSection(
|
||||
IN HANDLE ProcessHandle,
|
||||
IN PVOID BaseAddress
|
||||
);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ZwUnmapViewOfSection(
|
||||
IN HANDLE ProcessHandle,
|
||||
IN PVOID BaseAddress
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtWriteRequestData (HANDLE PortHandle,
|
||||
PLPC_MESSAGE Message,
|
||||
ULONG Index,
|
||||
PVOID Buffer,
|
||||
ULONG BufferLength,
|
||||
PULONG ReturnLength);
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ZwWriteRequestData (HANDLE PortHandle,
|
||||
PLPC_MESSAGE Message,
|
||||
ULONG Index,
|
||||
PVOID Buffer,
|
||||
ULONG BufferLength,
|
||||
PULONG ReturnLength);
|
||||
|
||||
|
||||
/*
|
||||
* FUNCTION: Writes a range of virtual memory
|
||||
|
@ -3824,56 +4147,6 @@ ZwWriteVirtualMemory(
|
|||
OUT PULONG NumberOfBytesWritten
|
||||
);
|
||||
|
||||
/*
|
||||
* FUNCTION: Unmaps a piece of virtual memory backed by a file.
|
||||
* ARGUMENTS:
|
||||
* ProcessHandle = Handle to the process
|
||||
* BaseAddress = The address where the mapping begins
|
||||
* REMARK:
|
||||
This procedure maps to the win32 UnMapViewOfFile
|
||||
* RETURNS: Status
|
||||
*/
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NtUnmapViewOfSection(
|
||||
IN HANDLE ProcessHandle,
|
||||
IN PVOID BaseAddress
|
||||
);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ZwUnmapViewOfSection(
|
||||
IN HANDLE ProcessHandle,
|
||||
IN PVOID BaseAddress
|
||||
);
|
||||
|
||||
/* --- OBJECT SYNCHRONIZATION --- */
|
||||
|
||||
/*
|
||||
* FUNCTION: Signals an object and wait for an other one.
|
||||
* ARGUMENTS:
|
||||
* SignalObject = Handle to the object that should be signaled
|
||||
* WaitObject = Handle to the object that should be waited for
|
||||
* Alertable = True if the wait is alertable
|
||||
* Time = The time to wait
|
||||
* RETURNS: Status
|
||||
*/
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NtSignalAndWaitForSingleObject(
|
||||
IN HANDLE SignalObject,
|
||||
IN HANDLE WaitObject,
|
||||
IN BOOLEAN Alertable,
|
||||
IN PLARGE_INTEGER Time
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NtSignalAndWaitForSingleObject(
|
||||
IN HANDLE SignalObject,
|
||||
IN HANDLE WaitObject,
|
||||
IN BOOLEAN Alertable,
|
||||
IN PLARGE_INTEGER Time
|
||||
);
|
||||
|
||||
/*
|
||||
* FUNCTION: Waits for an object to become signalled.
|
||||
|
|
|
@ -1656,8 +1656,67 @@ typedef enum _TIMER_INFORMATION_CLASS
|
|||
TimerBasicInformation
|
||||
} TIMER_INFORMATION_CLASS;
|
||||
|
||||
typedef
|
||||
struct _LPC_PORT_BASIC_INFORMATION
|
||||
#ifndef __USE_W32API
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UNUSED_MSG_TYPE = 0x0, /* ReactOS */
|
||||
LPC_NEW_MESSAGE = 0x0, /* NT */
|
||||
LPC_REQUEST = 0x1,
|
||||
LPC_REPLY = 0x2,
|
||||
LPC_DATAGRAM = 0x3,
|
||||
LPC_LOST_REPLY = 0x4,
|
||||
LPC_PORT_CLOSED = 0x5,
|
||||
LPC_CLIENT_DIED = 0x6,
|
||||
LPC_EXCEPTION = 0x7,
|
||||
LPC_DEBUG_EVENT = 0x8,
|
||||
LPC_ERROR_EVENT = 0x9,
|
||||
LPC_CONNECTION_REQUEST = 0xa,
|
||||
LPC_CONNECTION_REFUSED = 0xb
|
||||
|
||||
} LPC_TYPE, *PLPC_TYPE;
|
||||
|
||||
typedef struct _LPC_SECTION_WRITE
|
||||
{
|
||||
ULONG Length;
|
||||
HANDLE SectionHandle;
|
||||
ULONG SectionOffset;
|
||||
ULONG ViewSize;
|
||||
PVOID ViewBase;
|
||||
PVOID TargetViewBase;
|
||||
} LPC_SECTION_WRITE, *PLPC_SECTION_WRITE;
|
||||
|
||||
typedef struct _LPC_SECTION_READ
|
||||
{
|
||||
ULONG Length;
|
||||
ULONG ViewSize;
|
||||
PVOID ViewBase;
|
||||
} LPC_SECTION_READ, *PLPC_SECTION_READ;
|
||||
|
||||
typedef struct _LPC_MESSAGE
|
||||
{
|
||||
USHORT DataSize;
|
||||
USHORT MessageSize;
|
||||
USHORT MessageType;
|
||||
USHORT VirtualRangesOffset;
|
||||
CLIENT_ID ClientId;
|
||||
ULONG MessageId;
|
||||
ULONG SectionSize; /* CallbackID */
|
||||
} LPC_MESSAGE, *PLPC_MESSAGE;
|
||||
|
||||
#define MAX_MESSAGE_DATA (0x130)
|
||||
|
||||
typedef struct _LPC_MAX_MESSAGE
|
||||
{
|
||||
LPC_MESSAGE Header;
|
||||
BYTE Data[MAX_MESSAGE_DATA];
|
||||
} LPC_MAX_MESSAGE, *PLPC_MAX_MESSAGE;
|
||||
|
||||
#define PORT_MESSAGE_TYPE(m) (LPC_TYPE)((m).Header.MessageType)
|
||||
|
||||
#endif /* __USE_W32API */
|
||||
|
||||
typedef struct _LPC_PORT_BASIC_INFORMATION
|
||||
{
|
||||
DWORD Unknown0;
|
||||
DWORD Unknown1;
|
||||
|
@ -1676,6 +1735,7 @@ struct _LPC_PORT_BASIC_INFORMATION
|
|||
|
||||
} LPC_PORT_BASIC_INFORMATION, * PLPC_PORT_BASIC_INFORMATION;
|
||||
|
||||
|
||||
typedef struct _KINTERRUPT
|
||||
{
|
||||
ULONG Vector;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: debug.c,v 1.13 2003/12/30 05:10:32 hyperion Exp $
|
||||
/* $Id: debug.c,v 1.14 2004/01/06 16:08:02 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -16,7 +16,6 @@
|
|||
#include <rosrtl/string.h>
|
||||
#include <rosrtl/thread.h>
|
||||
#include <ntdll/dbg.h>
|
||||
#include <napi/lpc.h>
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: lsa.c,v 1.9 2003/11/17 02:12:50 hyperion Exp $
|
||||
/* $Id: lsa.c,v 1.10 2004/01/06 16:08:25 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -13,7 +13,6 @@
|
|||
#include <windows.h>
|
||||
#include <ddk/ntddk.h>
|
||||
#include <rosrtl/string.h>
|
||||
#include <napi/lpc.h>
|
||||
#include <lsass/lsass.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef __INCLUDE_INTERNAL_DBG_H
|
||||
#define __INCLUDE_INTERNAL_DBG_H
|
||||
|
||||
#include <napi/lpc.h>
|
||||
#include <napi/dbg.h>
|
||||
#include <internal/port.h>
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef __INCLUDE_INTERNAL_PORT_H
|
||||
#define __INCLUDE_INTERNAL_PORT_H
|
||||
|
||||
#include <napi/lpc.h>
|
||||
|
||||
typedef struct _EPORT_LISTENER
|
||||
{
|
||||
HANDLE ListenerPid;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: logport.c,v 1.8 2003/11/24 16:41:41 ekohl Exp $
|
||||
/* $Id: logport.c,v 1.9 2004/01/06 16:08:46 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -31,7 +31,6 @@
|
|||
|
||||
#define NTOS_MODE_USER
|
||||
#include <ntos.h>
|
||||
#include <napi/lpc.h>
|
||||
#include <windows.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: init.c,v 1.53 2003/11/24 16:15:00 gvg Exp $
|
||||
/* $Id: init.c,v 1.54 2004/01/06 16:10:11 ekohl Exp $
|
||||
*
|
||||
* init.c - Session Manager initialization
|
||||
*
|
||||
|
@ -32,7 +32,6 @@
|
|||
#include <ntos.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include <ntdll/ldr.h>
|
||||
#include <napi/lpc.h>
|
||||
#include <rosrtl/string.h>
|
||||
|
||||
#include "smss.h"
|
||||
|
@ -520,7 +519,7 @@ SmLoadKnownDlls(VOID)
|
|||
FILE_SYNCHRONOUS_IO_NONALERT | FILE_DIRECTORY_FILE);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT("NtOpenFile() failed (Status %lx)\n", Status);
|
||||
DPRINT1("NtOpenFile(%wZ) failed (Status %lx)\n", &DllNtPath, Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: smapi.c,v 1.10 2003/11/17 02:12:51 hyperion Exp $
|
||||
/* $Id: smapi.c,v 1.11 2004/01/06 16:10:11 ekohl Exp $
|
||||
*
|
||||
* Reactos Session Manager
|
||||
*
|
||||
|
@ -7,7 +7,6 @@
|
|||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
#include <napi/lpc.h>
|
||||
#include <rosrtl/string.h>
|
||||
|
||||
#include "smss.h"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: winlogon.c,v 1.23 2003/12/18 09:51:08 gvg Exp $
|
||||
/* $Id: winlogon.c,v 1.24 2004/01/06 16:11:57 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -15,7 +15,6 @@
|
|||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <ntsecapi.h>
|
||||
#include <napi/lpc.h>
|
||||
#include <wchar.h>
|
||||
|
||||
#include "setup.h"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: wlx.c,v 1.2 2003/12/07 00:04:20 weiden Exp $
|
||||
/* $Id: wlx.c,v 1.3 2004/01/06 16:11:57 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -15,7 +15,6 @@
|
|||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <WinWlx.h>
|
||||
#include <napi/lpc.h>
|
||||
#include <wchar.h>
|
||||
|
||||
#include "setup.h"
|
||||
|
|
Loading…
Reference in a new issue