 <p>Which version of VS are you using? </p> <p>Not sure what you mean by "registered in any project", but here's a starting point: You can obtain a list of all .h and .cpp files by doing (recursive) directory listings from the root directory. Since the solution and the project files are just .xml files(in later versions of VS at least), you can just use regular expressions to pull out all the referenced .h and .cpp files and then cross reference the list you got doing directory listings with the ones you can parse from project files. In your case your simple directory structure makes the searching a little simpler.</p> <p>If by your second point you mean "included by another source or header" then I guess you have to read all .h and .cpp files and search for #include statements, but this would make the program a little more complex.</p>