typedef STACK_UPP_TYPE(PMPrintDialogInitProcPtr) PMPrintDialogInitUPP;
If you need to create a custom print dialog box for your application, you must provide a function that initializes a PMDialog object.. Such an initialization function is defined by the PMPrintDialogInitUPP data type. You supply this pointer in a parameter to the PMPrintDialogMain function.
This is how would declare your initialization function if your were to name it MyPageSetUpDialogInitProc:
void MyPageSetUpDialogInitProc( PMPrintSettings printSettings, PMDialog *theDialog)
See the description of the PMPrintDialogInitProcPtr function for information about implementing this routine.