PPT PPTX ODP
Aspose.Slides  for C++

Lock or Password Protect PowerPoint and OpenOffice documents using C++

Build your own C++ apps to set a password to presentations using server-side APIs.