mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 18:23:21 +00:00
[CMD] Implement provisional support for the HIGHESTNUMANODENUMBER environment-like variable.
This variable is available only in Win7+, even if the underlying API GetNumaHighestNodeNumber() is available in Win2003+
This commit is contained in:
parent
04e0fe0652
commit
90159e1e51
1 changed files with 11 additions and 0 deletions
|
@ -948,6 +948,17 @@ GetEnvVarOrSpecial(LPCTSTR varName)
|
|||
_itot(nErrorLevel, ret, 10);
|
||||
return ret;
|
||||
}
|
||||
#if (NTDDI_VERSION >= NTDDI_WIN7)
|
||||
/* Available in Win7+, even if the underlying API is available in Win2003+ */
|
||||
/* %HIGHESTNUMANODENUMBER% */
|
||||
else if (_tcsicmp(varName, _T("HIGHESTNUMANODENUMBER")) == 0)
|
||||
{
|
||||
ULONG NumaNodeNumber = 0;
|
||||
GetNumaHighestNodeNumber(&NumaNodeNumber);
|
||||
_itot(NumaNodeNumber, ret, 10);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue