OPENFILENAME_NT4W structure (commdlg.h)

The OPENFILENAME_NT4 structure is identical to OPENFILENAME with _WIN32_WINNT set to 0x0400. It allows an application to take advantage of other post-Microsoft Windows NT 4.0 features while running on Microsoft Windows NT 4.0. Also, MFC42 applications must use OPENFILENAME_NT4 to avoid heap corruption. This is because Microsoft Foundation Classes (MFC) has classes with embedded OPENFILENAME structures, and you must use the same structure size.

Note  This structure is provided only for compatibility.
 

Syntax

typedef struct tagOFN_NT4W {
  DWORD         lStructSize;
  HWND          hwndOwner;
  HINSTANCE     hInstance;
  LPCWSTR       lpstrFilter;
  LPWSTR        lpstrCustomFilter;
  DWORD         nMaxCustFilter;
  DWORD         nFilterIndex;
  LPWSTR        lpstrFile;
  DWORD         nMaxFile;
  LPWSTR        lpstrFileTitle;
  DWORD         nMaxFileTitle;
  LPCWSTR       lpstrInitialDir;
  LPCWSTR       lpstrTitle;
  DWORD         Flags;
  WORD          nFileOffset;
  WORD          nFileExtension;
  LPCWSTR       lpstrDefExt;
  LPARAM        lCustData;
  LPOFNHOOKPROC lpfnHook;
  LPCWSTR       lpTemplateName;
} OPENFILENAME_NT4W, *LPOPENFILENAME_NT4W;

Members

lStructSize

hwndOwner

hInstance

lpstrFilter

lpstrCustomFilter

nMaxCustFilter

nFilterIndex

lpstrFile

nMaxFile

lpstrFileTitle

nMaxFileTitle

lpstrInitialDir

lpstrTitle

Flags

nFileOffset

nFileExtension

lpstrDefExt

lCustData

lpfnHook

lpTemplateName

Requirements

Requirement Value
Header commdlg.h (include Windows.h)