Here is a python script to check if any banned windows APIs are present in C source/header files. It’s useful to find where vulnerable code might be present.
The script gets as an argument a folder name and then recursively checks files with .c, .cpp and .h file extensions to see if they use any of the banned APIs.
The output has the following format:
source_file:(L<line_number>): <line_text>