OPENFILENAME_NT4A structure

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_NT4A {
  DWORD         lStructSize;
  HWND          hwndOwner;
  HINSTANCE     hInstance;
  LPCSTR        lpstrFilter;
  LPSTR         lpstrCustomFilter;
  DWORD         nMaxCustFilter;
  DWORD         nFilterIndex;
  LPSTR         lpstrFile;
  DWORD         nMaxFile;
  LPSTR         lpstrFileTitle;
  DWORD         nMaxFileTitle;
  LPCSTR        lpstrInitialDir;
  LPCSTR        lpstrTitle;
  DWORD         Flags;
  WORD          nFileOffset;
  WORD          nFileExtension;
  LPCSTR        lpstrDefExt;
  LPARAM        lCustData;
  LPOFNHOOKPROC lpfnHook;
  LPCSTR        lpTemplateName;
} OPENFILENAME_NT4A, *LPOPENFILENAME_NT4A;

Members

lStructSize

hwndOwner

hInstance

lpstrFilter

lpstrCustomFilter

nMaxCustFilter

nFilterIndex

lpstrFile

nMaxFile

lpstrFileTitle

nMaxFileTitle

lpstrInitialDir

lpstrTitle

Flags

nFileOffset

nFileExtension

lpstrDefExt

lCustData

lpfnHook

lpTemplateName

Requirements

   
Header commdlg.h (include Windows.h)