Rediger

Del via


NtGetCurrentProcessorNumber function

[NtGetCurrentProcessorNumber may be altered or unavailable in future versions of Windows. Applications should use the GetCurrentProcessorNumber function instead.]

Retrieves the number of the processor the current thread was running on during the call to this function.

Syntax

ULONG WINAPI NtGetCurrentProcessorNumber(void);

Parameters

This function has no parameters.

Return value

The function returns the current processor number.

Remarks

This function is used to provide information for estimating process performance.

This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to Ntdll.dll.

Requirements

Requirement Value
DLL
Ntdll.dll

See also

Multiple Processors

Process and Thread Functions

Processes