Commit c6ac0d0f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

kernel32: Added GetLogicalProcessorInformation implementation.

parent 67920ea6
...@@ -3717,9 +3717,29 @@ HANDLE WINAPI GetCurrentProcess(void) ...@@ -3717,9 +3717,29 @@ HANDLE WINAPI GetCurrentProcess(void)
*/ */
BOOL WINAPI GetLogicalProcessorInformation(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION buffer, PDWORD pBufLen) BOOL WINAPI GetLogicalProcessorInformation(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION buffer, PDWORD pBufLen)
{ {
FIXME("(%p,%p): stub\n", buffer, pBufLen); NTSTATUS status;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
TRACE("(%p,%p)\n", buffer, pBufLen);
if(!pBufLen)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE; 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;
} }
/*********************************************************************** /***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment