mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 23:14:53 +00:00
Fixed/Added Stubs.
Implemented PsRevertThreadToSelf svn path=/trunk/; revision=10503
This commit is contained in:
parent
e9fc7ea7df
commit
359fe88806
|
@ -1,6 +1,6 @@
|
||||||
#ifndef __INCLUDE_DDK_FSFUNCS_H
|
#ifndef __INCLUDE_DDK_FSFUNCS_H
|
||||||
#define __INCLUDE_DDK_FSFUNCS_H
|
#define __INCLUDE_DDK_FSFUNCS_H
|
||||||
/* $Id: fsfuncs.h,v 1.26 2004/07/16 13:45:02 ion Exp $ */
|
/* $Id: fsfuncs.h,v 1.27 2004/08/12 06:04:21 ion Exp $ */
|
||||||
#define FlagOn(x,f) ((x) & (f))
|
#define FlagOn(x,f) ((x) & (f))
|
||||||
|
|
||||||
#include <ntos/fstypes.h>
|
#include <ntos/fstypes.h>
|
||||||
|
@ -311,15 +311,19 @@ FsRtlGetNextMcbEntry (IN PMCB Mcb,
|
||||||
#define FsRtlExitFileSystem KeLeaveCriticalRegion
|
#define FsRtlExitFileSystem KeLeaveCriticalRegion
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
STDCALL
|
||||||
FsRtlIncrementCcFastReadNotPossible( VOID );
|
FsRtlIncrementCcFastReadNotPossible( VOID );
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
STDCALL
|
||||||
FsRtlIncrementCcFastReadWait( VOID );
|
FsRtlIncrementCcFastReadWait( VOID );
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
STDCALL
|
||||||
FsRtlIncrementCcFastReadNoWait( VOID );
|
FsRtlIncrementCcFastReadNoWait( VOID );
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
STDCALL
|
||||||
FsRtlIncrementCcFastReadResourceMiss( VOID );
|
FsRtlIncrementCcFastReadResourceMiss( VOID );
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: psfuncs.h,v 1.31 2004/07/21 01:05:26 ion Exp $
|
/* $Id: psfuncs.h,v 1.32 2004/08/12 06:04:21 ion Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef _INCLUDE_DDK_PSFUNCS_H
|
#ifndef _INCLUDE_DDK_PSFUNCS_H
|
||||||
#define _INCLUDE_DDK_PSFUNCS_H
|
#define _INCLUDE_DDK_PSFUNCS_H
|
||||||
|
@ -303,6 +303,12 @@ STDCALL PsRevertToSelf(
|
||||||
VOID
|
VOID
|
||||||
);
|
);
|
||||||
|
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
PsRevertThreadToSelf(
|
||||||
|
IN struct _ETHREAD* Thread
|
||||||
|
);
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
STDCALL PsSetJobUIRestrictionsClass(
|
STDCALL PsSetJobUIRestrictionsClass(
|
||||||
PVOID /*PEJOB*/ Job,
|
PVOID /*PEJOB*/ Job,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: rtl.h,v 1.32 2004/08/05 18:17:36 ion Exp $
|
/* $Id: rtl.h,v 1.33 2004/08/12 06:04:21 ion Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#ifndef __DDK_RTL_H
|
#ifndef __DDK_RTL_H
|
||||||
|
@ -1622,6 +1622,15 @@ RtlIntegerToChar (
|
||||||
IN OUT PCHAR String
|
IN OUT PCHAR String
|
||||||
);
|
);
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
STDCALL
|
||||||
|
RtlIntegerToUnicode(
|
||||||
|
IN ULONG Value,
|
||||||
|
IN ULONG Base OPTIONAL,
|
||||||
|
IN ULONG Length OPTIONAL,
|
||||||
|
IN OUT LPWSTR String
|
||||||
|
);
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
STDCALL
|
STDCALL
|
||||||
RtlIntegerToUnicodeString (
|
RtlIntegerToUnicodeString (
|
||||||
|
@ -2746,6 +2755,13 @@ RtlWalkFrameChain (
|
||||||
IN ULONG Flags
|
IN ULONG Flags
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ULONG
|
||||||
|
STDCALL
|
||||||
|
RtlZeroHeap(
|
||||||
|
IN PVOID HeapHandle,
|
||||||
|
IN ULONG Flags
|
||||||
|
);
|
||||||
|
|
||||||
ULONG
|
ULONG
|
||||||
STDCALL
|
STDCALL
|
||||||
RtlxAnsiStringToUnicodeSize (
|
RtlxAnsiStringToUnicodeSize (
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: Makefile,v 1.137 2004/08/10 12:05:20 ekohl Exp $
|
# $Id: Makefile,v 1.138 2004/08/12 06:04:21 ion Exp $
|
||||||
#
|
#
|
||||||
# ReactOS Operating System
|
# ReactOS Operating System
|
||||||
#
|
#
|
||||||
|
@ -140,6 +140,7 @@ OBJECTS_KE = \
|
||||||
ke/event.o \
|
ke/event.o \
|
||||||
ke/kqueue.o \
|
ke/kqueue.o \
|
||||||
ke/kthread.o \
|
ke/kthread.o \
|
||||||
|
ke/ipi.o \
|
||||||
ke/main.o \
|
ke/main.o \
|
||||||
ke/mutex.o \
|
ke/mutex.o \
|
||||||
ke/process.o \
|
ke/process.o \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: filelock.c,v 1.12 2003/10/12 17:05:44 hbirr Exp $
|
/* $Id: filelock.c,v 1.13 2004/08/12 06:04:21 ion Exp $
|
||||||
*
|
*
|
||||||
* reactos/ntoskrnl/fs/filelock.c
|
* reactos/ntoskrnl/fs/filelock.c
|
||||||
*
|
*
|
||||||
|
@ -1290,4 +1290,28 @@ FsRtlFreeFileLock(
|
||||||
ExFreeToPagedLookasideList(&LockLookaside, FileLock);
|
ExFreeToPagedLookasideList(&LockLookaside, FileLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlAcquireFileExclusive(
|
||||||
|
IN PFILE_OBJECT FileObject
|
||||||
|
)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlReleaseFile(
|
||||||
|
IN PFILE_OBJECT FileObject
|
||||||
|
)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: mdl.c,v 1.6 2004/06/23 00:42:21 ion Exp $
|
/* $Id: mdl.c,v 1.7 2004/08/12 06:04:21 ion Exp $
|
||||||
*
|
*
|
||||||
* reactos/ntoskrnl/fs/mdl.c
|
* reactos/ntoskrnl/fs/mdl.c
|
||||||
*
|
*
|
||||||
|
@ -13,6 +13,7 @@
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
VOID
|
VOID
|
||||||
|
STDCALL
|
||||||
FsRtlIncrementCcFastReadResourceMiss( VOID )
|
FsRtlIncrementCcFastReadResourceMiss( VOID )
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
@ -22,6 +23,7 @@ FsRtlIncrementCcFastReadResourceMiss( VOID )
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
VOID
|
VOID
|
||||||
|
STDCALL
|
||||||
FsRtlIncrementCcFastReadNotPossible( VOID )
|
FsRtlIncrementCcFastReadNotPossible( VOID )
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
@ -31,6 +33,7 @@ FsRtlIncrementCcFastReadNotPossible( VOID )
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
VOID
|
VOID
|
||||||
|
STDCALL
|
||||||
FsRtlIncrementCcFastReadWait( VOID )
|
FsRtlIncrementCcFastReadWait( VOID )
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
@ -40,6 +43,7 @@ FsRtlIncrementCcFastReadWait( VOID )
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
VOID
|
VOID
|
||||||
|
STDCALL
|
||||||
FsRtlIncrementCcFastReadNoWait( VOID )
|
FsRtlIncrementCcFastReadNoWait( VOID )
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dpc.c,v 1.32 2004/07/29 23:28:31 jimtabor Exp $
|
/* $Id: dpc.c,v 1.33 2004/08/12 06:04:21 ion Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -283,18 +283,4 @@ KeInitDpc(VOID)
|
||||||
KeInitializeSpinLock(&DpcQueueLock);
|
KeInitializeSpinLock(&DpcQueueLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*
|
|
||||||
STDCALL
|
|
||||||
BOOLEAN
|
|
||||||
KiIpiServiceRoutine(
|
|
||||||
IN PKTRAP_FRAME TrapFrame,
|
|
||||||
IN PKEXCEPTION_FRAME ExceptionFrame
|
|
||||||
)
|
|
||||||
{
|
|
||||||
UNIMPLEMENTED;
|
|
||||||
return FALSE;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
36
reactos/ntoskrnl/ke/ipi.c
Normal file
36
reactos/ntoskrnl/ke/ipi.c
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
/* $Id: ipi.c,v 1.1 2004/08/12 06:04:21 ion Exp $
|
||||||
|
*
|
||||||
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
|
* PROJECT: ReactOS kernel
|
||||||
|
* FILE: ntoskrnl/ke/ipi.c
|
||||||
|
* PURPOSE: IPI Routines (Inter-Processor Interrupts). NT5+
|
||||||
|
* PROGRAMMER: Alex Ionescu (alex@relsoft.net)
|
||||||
|
* UPDATE HISTORY:
|
||||||
|
* Created 11/08/2004
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
|
#include <ddk/ntddk.h>
|
||||||
|
#include <internal/ps.h>
|
||||||
|
|
||||||
|
#define NDEBUG
|
||||||
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
STDCALL
|
||||||
|
BOOLEAN
|
||||||
|
KiIpiServiceRoutine(
|
||||||
|
IN PKTRAP_FRAME TrapFrame,
|
||||||
|
IN PKEXCEPTION_FRAME ExceptionFrame
|
||||||
|
)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* EOF */
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: create.c,v 1.77 2004/08/07 19:13:26 ion Exp $
|
/* $Id: create.c,v 1.78 2004/08/12 06:04:21 ion Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -104,10 +104,18 @@ PsAssignImpersonationToken(PETHREAD Thread,
|
||||||
VOID STDCALL
|
VOID STDCALL
|
||||||
PsRevertToSelf (VOID)
|
PsRevertToSelf (VOID)
|
||||||
{
|
{
|
||||||
PETHREAD Thread;
|
PsRevertThreadToSelf(PsGetCurrentThread());
|
||||||
|
}
|
||||||
Thread = PsGetCurrentThread ();
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
PsRevertThreadToSelf(
|
||||||
|
IN PETHREAD Thread
|
||||||
|
)
|
||||||
|
{
|
||||||
if (Thread->ActiveImpersonationInfo == TRUE)
|
if (Thread->ActiveImpersonationInfo == TRUE)
|
||||||
{
|
{
|
||||||
ObDereferenceObject (Thread->ImpersonationInfo->Token);
|
ObDereferenceObject (Thread->ImpersonationInfo->Token);
|
||||||
|
@ -115,7 +123,6 @@ PsRevertToSelf (VOID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue