public static extern bool PrintDlgA(ref PrintDlgA param0);
/// <summary> /// The ANSI version of PrintDlg function displays a Print Dialog Box. The Print dialog box enables the user to specify the /// properties of a particular print job. /// Windows 2000/XP: The PrintDlg function has been superseded by the PrintDlgEx function. PrintDlgEx displays /// a Print Property Sheet, which has a General page containing controls similar to the Print dialog box /// </summary> /// <param name="lppd">Pointer to a PRINTDLGA structure that contains information used to initialize the dialog box. /// When PrintDlg returns, this structure contains information about the user's selections</param> /// <returns>If the user clicks the OK button, the return value is nonzero. The members of the PRINTDLGA structure /// pointed to by the lppd parameter indicate the user's selections. /// If the user canceled or closed the Print or Printer Setup dialog box or an error occurred, the return value /// is zero. To get extended error information, use the CommDlgExtendedError function. If the user canceled or /// closed the dialog box, CommDlgExtendedError returns zero; otherwise any value of CommonDialogError /// </returns> public static bool PrintDlgA(ref PrintDlgA lppd) { return(Native.PrintDlgA(ref lppd)); }