GetNumaNodeNumberFromHandle function (winbase.h)

Retrieves the NUMA node associated with the file or I/O device represented by the specified file handle.

Syntax

BOOL GetNumaNodeNumberFromHandle(
  [in]  HANDLE  hFile,
  [out] PUSHORT NodeNumber
);

Parameters

[in] hFile

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.

[out] NodeNumber

A pointer to a variable to receive the number of the NUMA node associated with the specified file handle.

Return value

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.

Remarks

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.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See also

CreateFile

NUMA Support