mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
- Add flags for NtCreateProcessEx for upcoming patch.
- Clear Tcb->Win32Thread during win32 cleanup. svn path=/trunk/; revision=19958
This commit is contained in:
parent
08ddf76021
commit
bc31c23df9
2 changed files with 13 additions and 0 deletions
|
@ -88,6 +88,18 @@ extern NTSYSAPI POBJECT_TYPE PsProcessType;
|
|||
#define PROCESS_PRIORITY_CLASS_BELOW_NORMAL 5
|
||||
#define PROCESS_PRIORITY_CLASS_ABOVE_NORMAL 6
|
||||
|
||||
//
|
||||
// NtCreateProcessEx flags
|
||||
//
|
||||
#define PS_REQUEST_BREAKAWAY 1
|
||||
#define PS_NO_DEBUG_INHERIT 2
|
||||
#define PS_INHERIT_HANDLES 4
|
||||
#define PS_UNKNOWN_VALUE 8
|
||||
#define PS_ALL_FLAGS (PS_REQUEST_BREAKAWAY | \
|
||||
PS_NO_DEBUG_INHERIT | \
|
||||
PS_INHERIT_HANDLES | \
|
||||
PS_UNKNOWN_VALUE)
|
||||
|
||||
//
|
||||
// Process base priorities
|
||||
//
|
||||
|
|
|
@ -248,6 +248,7 @@ Win32kThreadCallback(struct _ETHREAD *Thread,
|
|||
|
||||
e = PopEntryList(&Win32Thread->ReferencesList);
|
||||
}
|
||||
PsSetThreadWin32Thread(Thread, NULL);
|
||||
}
|
||||
|
||||
RETURN( STATUS_SUCCESS);
|
||||
|
|
Loading…
Reference in a new issue