- Add RtlSetProcessCritical

- Some fixes.

svn path=/trunk/; revision=18201
This commit is contained in:
Alex Ionescu 2005-10-02 08:22:49 +00:00
parent 00703c571b
commit 66e502bd5a
5 changed files with 17 additions and 8 deletions

View file

@ -172,8 +172,6 @@ typedef VOID
/* TYPES *********************************************************************/ /* TYPES *********************************************************************/
typedef LONG KPRIORITY;
#ifdef NTOS_MODE_USER #ifdef NTOS_MODE_USER
typedef CCHAR KPROCESSOR_MODE; typedef CCHAR KPROCESSOR_MODE;

View file

@ -13,7 +13,7 @@
#include "ldrtypes.h" #include "ldrtypes.h"
#include "mmtypes.h" #include "mmtypes.h"
#include "obtypes.h" #include "obtypes.h"
#include "extypes.h" //#include "extypes.h"
#ifndef NTOS_MODE_USER #ifndef NTOS_MODE_USER
#include "setypes.h" #include "setypes.h"
#endif #endif
@ -207,6 +207,11 @@ typedef NTSTATUS
/* TYPES *********************************************************************/ /* TYPES *********************************************************************/
struct _W32THREAD;
struct _W32PROCESS;
struct _ETHREAD;
#ifdef NTOS_MODE_USER #ifdef NTOS_MODE_USER
typedef struct _CLIENT_ID typedef struct _CLIENT_ID
{ {
@ -215,11 +220,6 @@ typedef struct _CLIENT_ID
} CLIENT_ID, *PCLIENT_ID; } CLIENT_ID, *PCLIENT_ID;
#endif #endif
struct _W32THREAD;
struct _W32PROCESS;
struct _ETHREAD;
typedef struct _DESCRIPTOR_TABLE_ENTRY typedef struct _DESCRIPTOR_TABLE_ENTRY
{ {
ULONG Selector; ULONG Selector;

View file

@ -1313,6 +1313,15 @@ VOID
NTAPI NTAPI
RtlReleasePebLock(VOID); RtlReleasePebLock(VOID);
NTSYSAPI
VOID
NTAPI
RtlSetProcessIsCritical(
IN BOOLEAN NewValue,
OUT PBOOLEAN OldValue OPTIONAL,
IN BOOLEAN IsWinlogon
);
/* /*
* Environment/Path Functions * Environment/Path Functions
*/ */

View file

@ -10,6 +10,7 @@
#define _RTLTYPES_H #define _RTLTYPES_H
/* DEPENDENCIES **************************************************************/ /* DEPENDENCIES **************************************************************/
#include "pstypes.h"
/* CONSTANTS *****************************************************************/ /* CONSTANTS *****************************************************************/
#define MAXIMUM_LEADBYTES 12 #define MAXIMUM_LEADBYTES 12

View file

@ -110,6 +110,7 @@ typedef ULONG CLONG;
typedef short CSHORT; typedef short CSHORT;
typedef CSHORT *PCSHORT; typedef CSHORT *PCSHORT;
typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS; typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS;
typedef LONG KPRIORITY;
typedef LONG NTSTATUS, *PNTSTATUS; typedef LONG NTSTATUS, *PNTSTATUS;
#define STATIC static #define STATIC static