typedef CALLBACK_API( void , PMPageSetUpDialogInitProcPtr )(PMPageFormat pageFormat, PMDialog *theDialog);
If you need to create a custom page setup dialog box for your application, you must provide a function that initializes a PMDialog object. Such an initialization function is defined by the PMPageSetUpDialogInitProcPtr data type. Use the PMPageSetUpDialogMain function to install your initialization function in your printing loop.
This is how would declare your initialization function if your were to name it MyPageSetUpDialogInitProc:
void MyPageSetUpDialogInitProc (PMPageFormat pageFormat, PMDialog *theDialog);
See the description of the PMPageSetUpDialogInitProcPtr function for a description of how to implement this routine.