Delphi-Quellcode:
type
POpenFilenameA = ^TOpenFilenameA;
POpenFilenameW = ^TOpenFilenameW;
POpenFilename = POpenFilenameA;
{$EXTERNALSYM tagOFNA}
tagOFNA = packed record
lStructSize: DWORD;
hWndOwner: HWND;
hInstance: HINST;
lpstrFilter: PAnsiChar;
lpstrCustomFilter: PAnsiChar;
nMaxCustFilter: DWORD;
nFilterIndex: DWORD;
lpstrFile: PAnsiChar;
nMaxFile: DWORD;
lpstrFileTitle: PAnsiChar;
nMaxFileTitle: DWORD;
lpstrInitialDir: PAnsiChar;
lpstrTitle: PAnsiChar;
Flags: DWORD;
nFileOffset: Word;
nFileExtension: Word;
lpstrDefExt: PAnsiChar;
lCustData: LPARAM;
lpfnHook: function(Wnd: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): UINT stdcall;
lpTemplateName: PAnsiChar;
pvReserved: Pointer;
dwReserved: DWORD;
FlagsEx: DWORD;
end;
{$EXTERNALSYM tagOFNW}
tagOFNW = packed record
lStructSize: DWORD;
hWndOwner: HWND;
hInstance: HINST;
lpstrFilter: PWideChar;
lpstrCustomFilter: PWideChar;
nMaxCustFilter: DWORD;
nFilterIndex: DWORD;
lpstrFile: PWideChar;
nMaxFile: DWORD;
lpstrFileTitle: PWideChar;
nMaxFileTitle: DWORD;
lpstrInitialDir: PWideChar;
lpstrTitle: PWideChar;
Flags: DWORD;
nFileOffset: Word;
nFileExtension: Word;
lpstrDefExt: PWideChar;
lCustData: LPARAM;
lpfnHook: function(Wnd: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): UINT stdcall;
lpTemplateName: PWideChar;
pvReserved: Pointer;
dwReserved: DWORD;
FlagsEx: DWORD;
end;
{$EXTERNALSYM tagOFN}
tagOFN = tagOFNA;
TOpenFilenameA = tagOFNA;
TOpenFilenameW = tagOFNW;
TOpenFilename = TOpenFilenameA;
{$EXTERNALSYM OPENFILENAMEA}
OPENFILENAMEA = tagOFNA;
{$EXTERNALSYM OPENFILENAMEW}
OPENFILENAMEW = tagOFNW;
{$EXTERNALSYM OPENFILENAME}
OPENFILENAME = OPENFILENAMEA;
So ist sie in D6 deklariert.