mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +00:00
[NDK/NTOSKRNK]
- Finally make EPROCESS::Session PVOID, as it's supposed to be - add missing Wow64Process member svn path=/trunk/; revision=56263
This commit is contained in:
parent
5491e8fbde
commit
549c33f2ff
2 changed files with 16 additions and 12 deletions
|
@ -1112,13 +1112,17 @@ typedef struct _EPROCESS
|
||||||
HARDWARE_PTE PageDirectoryPte;
|
HARDWARE_PTE PageDirectoryPte;
|
||||||
ULONGLONG Filler;
|
ULONGLONG Filler;
|
||||||
};
|
};
|
||||||
ULONG Session; // FIXME: PVOID
|
PVOID Session;
|
||||||
CHAR ImageFileName[16];
|
CHAR ImageFileName[16];
|
||||||
LIST_ENTRY JobLinks;
|
LIST_ENTRY JobLinks;
|
||||||
PVOID LockedPagesList;
|
PVOID LockedPagesList;
|
||||||
LIST_ENTRY ThreadListHead;
|
LIST_ENTRY ThreadListHead;
|
||||||
PVOID SecurityPort;
|
PVOID SecurityPort;
|
||||||
|
#ifdef _M_AMD64
|
||||||
|
struct _WOW64_PROCESS *Wow64Process;
|
||||||
|
#else
|
||||||
PVOID PaeTop;
|
PVOID PaeTop;
|
||||||
|
#endif
|
||||||
ULONG ActiveThreads;
|
ULONG ActiveThreads;
|
||||||
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
|
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
|
||||||
ULONG ImagePathHash;
|
ULONG ImagePathHash;
|
||||||
|
|
|
@ -958,7 +958,7 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
||||||
{
|
{
|
||||||
/* Get the WOW64 process structure */
|
/* Get the WOW64 process structure */
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
Wow64 = Process->Wow64Process;
|
Wow64 = (ULONG_PTR)Process->Wow64Process;
|
||||||
#else
|
#else
|
||||||
Wow64 = 0;
|
Wow64 = 0;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1322,7 +1322,7 @@ NtSetInformationProcess(IN HANDLE ProcessHandle,
|
||||||
if (!NT_SUCCESS(Status)) break;
|
if (!NT_SUCCESS(Status)) break;
|
||||||
|
|
||||||
/* Write the session ID in the EPROCESS */
|
/* Write the session ID in the EPROCESS */
|
||||||
Process->Session = SessionInfo.SessionId;
|
Process->Session = UlongToPtr(SessionInfo.SessionId); // HACK!!!
|
||||||
|
|
||||||
/* Check if the process also has a PEB */
|
/* Check if the process also has a PEB */
|
||||||
if (Process->Peb)
|
if (Process->Peb)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue