[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
public class OpenFileName
{
int structSize;
string filter = null;
string file = null;
int maxFile = 0;
string fiteTitle = null;
int maxFileTitle = 0;
string initialDir = null;
string title = null;
string defExt = null;
}
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.