You probably (almost certainly) will have to use the
DIA API
[
^], which also contains sample incl. src.
Chances are the API is only accepting input from files (I never used it myself), so you probably have to unpack and save the PDB to disk before using it.
++luck;