Skip to content

Instantly share code, notes, and snippets.

@timsneath
Created September 22, 2020 05:07
Show Gist options
  • Select an option

  • Save timsneath/16a8efa936f47d5f44d8f64960839719 to your computer and use it in GitHub Desktop.

Select an option

Save timsneath/16a8efa936f47d5f44d8f64960839719 to your computer and use it in GitHub Desktop.
IFileDialog.h (extract)
#include "windows.h"
#include "Shobjidl.h"
// vtable_start 4
MIDL_INTERFACE("42f85136-db7e-439c-85f1-e4075d135fc8")
IFileDialog : public IModalWindow
{
public:
virtual HRESULT STDMETHODCALLTYPE SetFileTypes(
/* [in] */ UINT cFileTypes,
/* [size_is][in] */ __RPC__in_ecount_full(cFileTypes) const COMDLG_FILTERSPEC *rgFilterSpec) = 0;
virtual HRESULT STDMETHODCALLTYPE SetFileTypeIndex(
/* [in] */ UINT iFileType) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFileTypeIndex(
/* [out] */ __RPC__out UINT *piFileType) = 0;
virtual HRESULT STDMETHODCALLTYPE Advise(
/* [in] */ __RPC__in_opt IFileDialogEvents *pfde,
/* [out] */ __RPC__out DWORD *pdwCookie) = 0;
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment