The pfntd parameter is required and the FONTDLG structure must be properly initialized.

Note: If the field in the FONTDLG structure, pfntd must be a pointer to a FONTDLG structure that is either static or allocated from the heap. This FONTDLG structure must not be allocated on the stack.