github.com/AlpineAIO/wails/v2@v2.0.0-beta.32.0.20240505041856-1047a8fa5fef/internal/go-common-file-dialog/cfd/vtblCommon.go (about)

     1  //go:build windows
     2  // +build windows
     3  
     4  package cfd
     5  
     6  type comDlgFilterSpec struct {
     7  	pszName *int16
     8  	pszSpec *int16
     9  }
    10  
    11  type iUnknownVtbl struct {
    12  	QueryInterface uintptr
    13  	AddRef         uintptr
    14  	Release        uintptr
    15  }
    16  
    17  type iModalWindowVtbl struct {
    18  	iUnknownVtbl
    19  	Show uintptr // func (hwndOwner HWND) HRESULT
    20  }
    21  
    22  type iFileDialogVtbl struct {
    23  	iModalWindowVtbl
    24  	SetFileTypes        uintptr // func (cFileTypes UINT, rgFilterSpec *COMDLG_FILTERSPEC) HRESULT
    25  	SetFileTypeIndex    uintptr // func(iFileType UINT) HRESULT
    26  	GetFileTypeIndex    uintptr
    27  	Advise              uintptr
    28  	Unadvise            uintptr
    29  	SetOptions          uintptr // func (fos FILEOPENDIALOGOPTIONS) HRESULT
    30  	GetOptions          uintptr // func (pfos *FILEOPENDIALOGOPTIONS) HRESULT
    31  	SetDefaultFolder    uintptr // func (psi *IShellItem) HRESULT
    32  	SetFolder           uintptr // func (psi *IShellItem) HRESULT
    33  	GetFolder           uintptr
    34  	GetCurrentSelection uintptr
    35  	SetFileName         uintptr // func (pszName LPCWSTR) HRESULT
    36  	GetFileName         uintptr
    37  	SetTitle            uintptr // func(pszTitle LPCWSTR) HRESULT
    38  	SetOkButtonLabel    uintptr
    39  	SetFileNameLabel    uintptr
    40  	GetResult           uintptr // func (ppsi **IShellItem) HRESULT
    41  	AddPlace            uintptr
    42  	SetDefaultExtension uintptr // func (pszDefaultExtension LPCWSTR) HRESULT
    43  	// This can only be used from a callback.
    44  	Close           uintptr
    45  	SetClientGuid   uintptr // func (guid REFGUID) HRESULT
    46  	ClearClientData uintptr
    47  	SetFilter       uintptr
    48  }