As mentioned by #RbMm, the function is also exported from OneCore.dll. Adding #pragma comment(lib, "OneCore") to my code resolved the linker error.
#pragma comment(lib, "OneCore"
Contrary to what Copilot said, KernelBase.lib is not provided in the Windows SDK.