1 /******************************************************************************* 2 * Copyright (c) 2000, 2012 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.swt.internal.win32; 15 16 public class OPENFILENAME { 17 public int lStructSize; 18 /** @field cast=(HWND) */ 19 public long hwndOwner; 20 /** @field cast=(HINSTANCE) */ 21 public long hInstance; 22 /** @field cast=(LPCTSTR) */ 23 public long lpstrFilter; 24 /** @field cast=(LPTSTR) */ 25 public long lpstrCustomFilter; 26 public int nMaxCustFilter; 27 public int nFilterIndex; 28 /** @field cast=(LPTSTR) */ 29 public long lpstrFile; 30 public int nMaxFile; 31 /** @field cast=(LPTSTR) */ 32 public long lpstrFileTitle; 33 public int nMaxFileTitle; 34 /** @field cast=(LPCTSTR) */ 35 public long lpstrInitialDir; 36 /** @field cast=(LPCTSTR) */ 37 public long lpstrTitle; 38 public int Flags; 39 public short nFileOffset; 40 public short nFileExtension; 41 /** @field cast=(LPCTSTR) */ 42 public long lpstrDefExt; 43 public long lCustData; 44 /** @field cast=(LPOFNHOOKPROC) */ 45 public long lpfnHook; 46 /** @field cast=(LPCTSTR) */ 47 public long lpTemplateName; 48 /** @field cast=(void *) */ 49 public long pvReserved; 50 public int dwReserved; 51 public int FlagsEx; 52 public static final int sizeof = OS.OPENFILENAME_sizeof (); 53 } 54