mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
-UniqueProcessId is ULONG_PTR not ULONG
-some formatting fixes svn path=/trunk/; revision=31089
This commit is contained in:
parent
5b49088f56
commit
d7b6fab9eb
1 changed files with 27 additions and 27 deletions
|
@ -120,11 +120,11 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
||||||
/* Set return length */
|
/* Set return length */
|
||||||
Length = sizeof(PROCESS_BASIC_INFORMATION);
|
Length = sizeof(PROCESS_BASIC_INFORMATION);
|
||||||
|
|
||||||
if ( ProcessInformationLength != Length )
|
if ( ProcessInformationLength != Length )
|
||||||
{
|
{
|
||||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Protect writes with SEH */
|
/* Protect writes with SEH */
|
||||||
_SEH_TRY
|
_SEH_TRY
|
||||||
{
|
{
|
||||||
|
@ -132,7 +132,7 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
||||||
ProcessBasicInfo->ExitStatus = Process->ExitStatus;
|
ProcessBasicInfo->ExitStatus = Process->ExitStatus;
|
||||||
ProcessBasicInfo->PebBaseAddress = Process->Peb;
|
ProcessBasicInfo->PebBaseAddress = Process->Peb;
|
||||||
ProcessBasicInfo->AffinityMask = Process->Pcb.Affinity;
|
ProcessBasicInfo->AffinityMask = Process->Pcb.Affinity;
|
||||||
ProcessBasicInfo->UniqueProcessId = (ULONG)Process->
|
ProcessBasicInfo->UniqueProcessId = (ULONG_PTR)Process->
|
||||||
UniqueProcessId;
|
UniqueProcessId;
|
||||||
ProcessBasicInfo->InheritedFromUniqueProcessId =
|
ProcessBasicInfo->InheritedFromUniqueProcessId =
|
||||||
(ULONG)Process->InheritedFromUniqueProcessId;
|
(ULONG)Process->InheritedFromUniqueProcessId;
|
||||||
|
@ -151,12 +151,12 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
||||||
case ProcessQuotaLimits:
|
case ProcessQuotaLimits:
|
||||||
case ProcessIoCounters:
|
case ProcessIoCounters:
|
||||||
|
|
||||||
Length = sizeof(IO_COUNTERS);
|
Length = sizeof(IO_COUNTERS);
|
||||||
if ( ProcessInformationLength != Length )
|
if ( ProcessInformationLength != Length )
|
||||||
{
|
{
|
||||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = STATUS_NOT_IMPLEMENTED;
|
Status = STATUS_NOT_IMPLEMENTED;
|
||||||
break;
|
break;
|
||||||
|
@ -167,11 +167,11 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
||||||
/* Set the return length */
|
/* Set the return length */
|
||||||
Length = sizeof(KERNEL_USER_TIMES);
|
Length = sizeof(KERNEL_USER_TIMES);
|
||||||
|
|
||||||
if ( ProcessInformationLength != Length )
|
if ( ProcessInformationLength != Length )
|
||||||
{
|
{
|
||||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Protect writes with SEH */
|
/* Protect writes with SEH */
|
||||||
_SEH_TRY
|
_SEH_TRY
|
||||||
|
@ -225,11 +225,11 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
||||||
/* Set the return length*/
|
/* Set the return length*/
|
||||||
Length = sizeof(ULONG);
|
Length = sizeof(ULONG);
|
||||||
|
|
||||||
if ( ProcessInformationLength != Length )
|
if ( ProcessInformationLength != Length )
|
||||||
{
|
{
|
||||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Count the number of handles this process has */
|
/* Count the number of handles this process has */
|
||||||
HandleCount = ObpGetHandleCountByHandleTable(Process->ObjectTable);
|
HandleCount = ObpGetHandleCountByHandleTable(Process->ObjectTable);
|
||||||
|
@ -279,11 +279,11 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
||||||
/* Set the return length */
|
/* Set the return length */
|
||||||
Length = sizeof(VM_COUNTERS);
|
Length = sizeof(VM_COUNTERS);
|
||||||
|
|
||||||
if ( ProcessInformationLength != Length )
|
if ( ProcessInformationLength != Length )
|
||||||
{
|
{
|
||||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enter SEH for write safety */
|
/* Enter SEH for write safety */
|
||||||
_SEH_TRY
|
_SEH_TRY
|
||||||
|
|
Loading…
Reference in a new issue