kernel32: Added GetLogicalProcessorInformation implementation.
This commit is contained in:
parent
67920ea6dd
commit
c6ac0d0fcc
|
@ -3717,11 +3717,31 @@ HANDLE WINAPI GetCurrentProcess(void)
|
|||
*/
|
||||
BOOL WINAPI GetLogicalProcessorInformation(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION buffer, PDWORD pBufLen)
|
||||
{
|
||||
FIXME("(%p,%p): stub\n", buffer, pBufLen);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
NTSTATUS status;
|
||||
|
||||
TRACE("(%p,%p)\n", buffer, pBufLen);
|
||||
|
||||
if(!pBufLen)
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
status = NtQuerySystemInformation( SystemLogicalProcessorInformation, buffer, *pBufLen, pBufLen);
|
||||
|
||||
if (status == STATUS_INFO_LENGTH_MISMATCH)
|
||||
{
|
||||
SetLastError( ERROR_INSUFFICIENT_BUFFER );
|
||||
return FALSE;
|
||||
}
|
||||
if (status != STATUS_SUCCESS)
|
||||
{
|
||||
SetLastError( RtlNtStatusToDosError( status ) );
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* GetLogicalProcessorInformationEx (KERNEL32.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue