Click to Rate and Give Feedback
MSDN
MSDN Library
System Services
 GetNumaNodeNumberFromHandle Functio...
GetNumaNodeNumberFromHandle Function

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

Syntax

C++
BOOL GetNumaNodeNumberFromHandle(
  __in   HANDLE hFile,
  __out  PUSHORT NodeNumber
);

Parameters

hFile [in]

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.

NodeNumber [out]

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

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See Also

CreateFile
NUMA Support

 

 

Send comments about this topic to Microsoft

Build date: 2/4/2010

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker