How to Change A Material Use C++(Plugin)

Hi Guys,How to get materials in current project by c++…