PGetMasterPageName(unsigned long nPageID);
unsigned long nPageID;
PageMaker internal ID for master page
This query returns a C string containing the name of specified master page.Page ID stays with page. While the name of a master page may change (if you rename it), its ID remains the same: A master page is independent of its name. If you assign private data to a master page and the page is subsequently renumbered, you can still access the private data using the page ID. (Assigning private data to a master page is one of the few instances where you need the ID of a master page.)
To change the name of a master page, use the PRenameMasterPage command.
PGetMasterPageName mpName(15);
strcpy(foo, mpName);
The PDefineMasterPage, PDeleteMasterPage, PMasterPage, and PSaveAsMasterPage commands
Comments or suggestions? Contact Adobe Developer Support