[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
public class OpenFileName
{
int lstructSize;
int hwndOwner;
int hInstance;
string lpstrFilter = null;
string lpstrCustomFilter = null;
int lMaxCustomFilter;
int lFilterIndex;
string lpstrFile = null;
int lMaxFile = 0;
string lpstrFiteTitle = null;
int lMaxFileTitle = 0;
string lpstrInitialDir = null;
string lpstrTitle = null;
int lFlags;
ushort nFileOffset;
ushort nFileExtension;
string lpstrDefExt = null;
int lCustData;
int lpfHook;
int lpTemplateName;
}
Structure OpenFileName
Dim lStructSize As Integer ' Filled with UDT size
Dim hwndOwner As Integer ' Tied to Owner
Dim hInstance As Integer ' Ignored
Dim lpstrFilter As String ' Tied to Filter
Dim lpstrCustomFilter As String ' Ignored
Dim nMaxCustFilter As Integer ' Ignored
Dim nFilterIndex As Integer ' Tied to FilterIndex
Dim lpstrFile As String ' Tied to FileName
Dim nMaxFile As Integer ' Handled internally
Dim lpstrFileTitle As String ' Tied to FileTitle
Dim nMaxFileTitle As Integer ' Handled internally
Dim lpstrInitialDir As String ' Tied to InitDir
Dim lpstrTitle As String ' Tied to DlgTitle
Dim Flags As Integer ' Tied to Flags
Dim nFileOffset As Short ' Ignored
Dim nFileExtension As Short ' Ignored
Dim lpstrDefExt As String ' Tied to DefaultExt
Dim lCustData As Integer ' Ignored
Dim lpfnHook As Integer ' Ignored
Dim lpTemplateName As Integer ' Ignored
End Structure
None.
None.