Exemplo n.º 1
0
 public static extern bool GetSaveFileNameA(ref OpenFileNameA param0);
Exemplo n.º 2
0
 /// <summary>
 /// The ANSI version of GetSaveFileName function creates a Save dialog box that lets the user
 /// specify the drive, directory, and name of a file to save.
 /// </summary>
 /// <param name="lpofn">Pointer to an OPENFILENAMEA structure that contains information used
 /// to initialize the dialog box. When GetSaveFileName returns, this structure contains information
 /// about the user's file selection</param>
 /// <returns>If the user specifies a file name and clicks the OK button and the function is successful,
 /// the return value is nonzero. The buffer pointed to by the lpstrFile member of the OPENFILENAMEA
 /// structure contains the full path and file name specified by the user. If the user cancels or
 /// closes the Save dialog box or an error such as the file name buffer being too small occurs, the
 /// return value is zero. To get extended error information, call the CommDlgExtendedError function</returns>
 public static bool GetSaveFileNameA(ref OpenFileNameA lpofn)
 {
     return(Native.GetSaveFileNameA(ref lpofn));
 }