I have driver code with few C/C++ runtime libraries like sprintf(). Due to inclusion of strsafe.h file, compiler is not throwing any error. I can replace sprintf() with RtlStringCchPrintfA().
But I would like add a check, if sprinf() is being used in driver code again, compiler should generate the error. Please let me know, how to achieve this?