- Add flags for NtCreateProcessEx for upcoming patch.

- Clear Tcb->Win32Thread during win32 cleanup.

svn path=/trunk/; revision=19958
This commit is contained in:
Alex Ionescu 2005-12-08 00:14:59 +00:00
parent 08ddf76021
commit bc31c23df9
2 changed files with 13 additions and 0 deletions

View file

@ -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
//

View file

@ -248,6 +248,7 @@ Win32kThreadCallback(struct _ETHREAD *Thread,
e = PopEntryList(&Win32Thread->ReferencesList);
}
PsSetThreadWin32Thread(Thread, NULL);
}
RETURN( STATUS_SUCCESS);