NTKERNELAPLI is not able to access
I'm trying to use the some NTKERNELAPI, in my driver code, but i'm getting these below errors.
error LNK2019: unresolved external symbol __imp__KeInitializeEvent referenced in function XXXX
error LNK2019: unresolved external symbol __imp__IoAcquireCancelSpinLock referenced in function XXXX
error LNK2019: unresolved external symbol __imp__KeSetEvent referenced in function XXXX
error LNK2019: unresolved external symbol __imp__PoCallDriver referenced in function XXXX
My .c files was include with wdm.h file. and compiled the code with cl.exe and during linking the library with ntoskrnl.lib these errors are observed.
I will be great help if someone help on this issue.