#ifndef _NTPSAPI_H
//
// Threads
//
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* Retrieves the number of the current processor.
*
* \return ULONG The number of the current processor.
* \sa https://learn.microsoft.com/en-us/windows/win32/procthread/ntgetcurrentprocessornumber
*/
NTSYSCALLAPI
ULONG
NTAPI
NtGetCurrentProcessorNumber(
VOID
);
View code on GitHub#ifndef _NTZWAPI_H
NTSYSCALLAPI
ULONG
NTAPI
ZwGetCurrentProcessorNumber(
VOID
);
View code on GitHubULONG WINAPI NtGetCurrentProcessorNumber(void);
View the official Win32 development documentationThis function is documented in Windows SDK.
[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.
This function has no parameters.
The function returns the current processor number.
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.
| Requirement | Value |
|---|---|
| DLL |
Ntdll.dll |