Name

GetSaveFileName

Synopsis

Displays the Save As common dialog box:

Private Declare Function GetSaveFileName Lib "comdlg32.dll" _
	Alias "GetSaveFileNameA" (pSavefilename As OPENFILENAME) As Long

Parameters

pSaveFilename

A pointer to an OPENFILENAME structure

Return Value

Returns 0 if there is an error, the Close button on the title bar was clicked, or the Cancel button was clicked. Otherwise, returns a nonzero value.

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.