Fixed/Added Stubs.

Implemented PsRevertThreadToSelf

svn path=/trunk/; revision=10503
This commit is contained in:
Alex Ionescu 2004-08-12 06:04:21 +00:00
parent e9fc7ea7df
commit 359fe88806
9 changed files with 110 additions and 26 deletions

View file

@ -1,6 +1,6 @@
#ifndef __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))
#include <ntos/fstypes.h>
@ -311,15 +311,19 @@ FsRtlGetNextMcbEntry (IN PMCB Mcb,
#define FsRtlExitFileSystem KeLeaveCriticalRegion
VOID
STDCALL
FsRtlIncrementCcFastReadNotPossible( VOID );
VOID
STDCALL
FsRtlIncrementCcFastReadWait( VOID );
VOID
STDCALL
FsRtlIncrementCcFastReadNoWait( VOID );
VOID
STDCALL
FsRtlIncrementCcFastReadResourceMiss( VOID );
VOID

View file

@ -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
#define _INCLUDE_DDK_PSFUNCS_H
@ -303,6 +303,12 @@ STDCALL PsRevertToSelf(
VOID
);
VOID
STDCALL
PsRevertThreadToSelf(
IN struct _ETHREAD* Thread
);
VOID
STDCALL PsSetJobUIRestrictionsClass(
PVOID /*PEJOB*/ Job,

View file

@ -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
@ -1622,6 +1622,15 @@ RtlIntegerToChar (
IN OUT PCHAR String
);
NTSTATUS
STDCALL
RtlIntegerToUnicode(
IN ULONG Value,
IN ULONG Base OPTIONAL,
IN ULONG Length OPTIONAL,
IN OUT LPWSTR String
);
NTSTATUS
STDCALL
RtlIntegerToUnicodeString (
@ -2746,6 +2755,13 @@ RtlWalkFrameChain (
IN ULONG Flags
);
ULONG
STDCALL
RtlZeroHeap(
IN PVOID HeapHandle,
IN ULONG Flags
);
ULONG
STDCALL
RtlxAnsiStringToUnicodeSize (

View file

@ -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
#
@ -140,6 +140,7 @@ OBJECTS_KE = \
ke/event.o \
ke/kqueue.o \
ke/kthread.o \
ke/ipi.o \
ke/main.o \
ke/mutex.o \
ke/process.o \

View file

@ -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
*
@ -1290,4 +1290,28 @@ FsRtlFreeFileLock(
ExFreeToPagedLookasideList(&LockLookaside, FileLock);
}
/*
* @unimplemented
*/
VOID
STDCALL
FsRtlAcquireFileExclusive(
IN PFILE_OBJECT FileObject
)
{
UNIMPLEMENTED;
}
/*
* @unimplemented
*/
VOID
STDCALL
FsRtlReleaseFile(
IN PFILE_OBJECT FileObject
)
{
UNIMPLEMENTED;
}
/* EOF */

View file

@ -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
*
@ -13,6 +13,7 @@
* @unimplemented
*/
VOID
STDCALL
FsRtlIncrementCcFastReadResourceMiss( VOID )
{
UNIMPLEMENTED;
@ -22,6 +23,7 @@ FsRtlIncrementCcFastReadResourceMiss( VOID )
* @unimplemented
*/
VOID
STDCALL
FsRtlIncrementCcFastReadNotPossible( VOID )
{
UNIMPLEMENTED;
@ -31,6 +33,7 @@ FsRtlIncrementCcFastReadNotPossible( VOID )
* @unimplemented
*/
VOID
STDCALL
FsRtlIncrementCcFastReadWait( VOID )
{
UNIMPLEMENTED;
@ -40,6 +43,7 @@ FsRtlIncrementCcFastReadWait( VOID )
* @unimplemented
*/
VOID
STDCALL
FsRtlIncrementCcFastReadNoWait( VOID )
{
UNIMPLEMENTED;

View file

@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software
* 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
* PROJECT: ReactOS kernel
@ -283,18 +283,4 @@ KeInitDpc(VOID)
KeInitializeSpinLock(&DpcQueueLock);
}
/*
* @unimplemented
*
STDCALL
BOOLEAN
KiIpiServiceRoutine(
IN PKTRAP_FRAME TrapFrame,
IN PKEXCEPTION_FRAME ExceptionFrame
)
{
UNIMPLEMENTED;
return FALSE;
}*/
/* EOF */

36
reactos/ntoskrnl/ke/ipi.c Normal file
View 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 */

View file

@ -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
* PROJECT: ReactOS kernel
@ -104,10 +104,18 @@ PsAssignImpersonationToken(PETHREAD Thread,
VOID STDCALL
PsRevertToSelf (VOID)
{
PETHREAD Thread;
Thread = PsGetCurrentThread ();
PsRevertThreadToSelf(PsGetCurrentThread());
}
/*
* @implemented
*/
VOID
STDCALL
PsRevertThreadToSelf(
IN PETHREAD Thread
)
{
if (Thread->ActiveImpersonationInfo == TRUE)
{
ObDereferenceObject (Thread->ImpersonationInfo->Token);
@ -115,7 +123,6 @@ PsRevertToSelf (VOID)
}
}
/*
* @implemented
*/