#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.
*/
NTSYSCALLAPI
ULONG
NTAPI
NtGetCurrentProcessorNumber(
VOID
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
ULONG
NTAPI
ZwGetCurrentProcessorNumber(
VOID
);
View code on GitHub
This function is documented in Windows SDK.