Name

Public Const CDM_GETSPEC = (CDM_FIRST + &H0)

Synopsis

wParam

Size of the buffer pointed to by lParam.

lParam

Pointer to a buffer, which gets the path and filename.

Description

Gets only the filename of the selected file in an Open or Save As common dialog box.

Return Value

A negative number indicates failure; otherwise, the number indicates the length of the path, filename, and a terminating null character.

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.