OFNOTIFY

This structure contains information about the WM_NOTIFY message sent to a hook procedure from an Explorer-style Open or Save As dialog box. The address of the OFNOTIFY structure is passed as the lParam parameter of the WM_NOTIFY message.

At a Glance

Header file: Commdlg.h
Windows CE versions: 1.0 and later

Syntax

typedef struct _OFNOTIFY {
NMHDR 
hdr;
LPOPENFILENAME
lpOFN;
LPTSTR 
pszFile;
} OFNOTIFY, FAR *LPOFNOTIFY;

Members

hdr

NMHDR structure. The code member of the NMHDR structure is the notification code indicating the CDN_TYPECHANGE message is sent.

lpOFN

Long pointer to the OPENFILENAME structure that was specified when the Open or Save As dialog box was created. For some of the notification messages, this structure contains additional information about the event that caused the notification.

pszFile

Pointer to the null-terminated string that contains the file name for which a network sharing violation has occurred. This member is valid only with the CDN_SHAREVIOLATION notification message.

See Also

NMHDR, OPENFILENAME