GetNumaNodeNumberFromHandle function (winbase.h)
Retrieves the NUMA node associated with the file or I/O device represented by the specified file handle.
BOOL GetNumaNodeNumberFromHandle( [in] HANDLE hFile, [out] PUSHORT NodeNumber );
A handle to a file or I/O device. Examples of I/O devices include files, file streams, volumes, physical disks, and sockets. For more information, see the CreateFile function.
A pointer to a variable to receive the number of the NUMA node associated with the specified file handle.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, use GetLastError.
If the specified handle does not have a node associated with it, the function returns FALSE. The value of the NodeNumber parameter is undetermined and should not be used.
To compile an application that uses this function, set _WIN32_WINNT >= 0x0601. For more information, see Using the Windows Headers.
|Minimum supported client||Windows 7 [desktop apps only]|
|Minimum supported server||Windows Server 2008 R2 [desktop apps only]|
|Header||winbase.h (include Windows.h)|