ReactOS  0.4.15-dev-5112-g22d8c0f
CQueryAssociations.h
Go to the documentation of this file.
1 #pragma once
2 
4  public CComCoClass<CQueryAssociations, &CLSID_QueryAssociations>,
5  public CComObjectRootEx<CComMultiThreadModelNoCS>,
6  public IQueryAssociations
7 {
8 private:
11 
12  HRESULT GetValue(HKEY hkey, const WCHAR *name, void **data, DWORD *data_size);
14  HRESULT GetExecutable(LPCWSTR pszExtra, LPWSTR path, DWORD pathlen, DWORD *len);
15  HRESULT ReturnData(void *out, DWORD *outlen, const void *data, DWORD datalen);
17 
18 public:
21 
22  // *** IQueryAssociations methods ***
23  virtual HRESULT STDMETHODCALLTYPE Init(ASSOCF flags, LPCWSTR pwszAssoc, HKEY hkProgid, HWND hwnd);
24  virtual HRESULT STDMETHODCALLTYPE GetString(ASSOCF flags, ASSOCSTR str, LPCWSTR pwszExtra, LPWSTR pwszOut, DWORD *pcchOut);
25  virtual HRESULT STDMETHODCALLTYPE GetKey(ASSOCF flags, ASSOCKEY key, LPCWSTR pwszExtra, HKEY *phkeyOut);
26  virtual HRESULT STDMETHODCALLTYPE GetData(ASSOCF flags, ASSOCDATA data, LPCWSTR pwszExtra, void *pvOut, DWORD *pcbOut);
27  virtual HRESULT STDMETHODCALLTYPE GetEnum(ASSOCF cfFlags, ASSOCENUM assocenum, LPCWSTR pszExtra, REFIID riid, LPVOID *ppvOut);
28 
32 
34  COM_INTERFACE_ENTRY_IID(IID_IQueryAssociations, IQueryAssociations)
36 };
virtual HRESULT STDMETHODCALLTYPE GetString(ASSOCF flags, ASSOCSTR str, LPCWSTR pwszExtra, LPWSTR pwszOut, DWORD *pcchOut)
#define REFIID
Definition: guiddef.h:118
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
virtual HRESULT STDMETHODCALLTYPE GetData(ASSOCF flags, ASSOCDATA data, LPCWSTR pwszExtra, void *pvOut, DWORD *pcbOut)
REFIID riid
Definition: precomp.h:44
HRESULT ReturnData(void *out, DWORD *outlen, const void *data, DWORD datalen)
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:612
int const JOCTET unsigned int datalen
Definition: jpeglib.h:1030
#define IDR_QUERYASSOCIATIONS
Definition: shresdef.h:873
HRESULT GetValue(HKEY hkey, const WCHAR *name, void **data, DWORD *data_size)
HRESULT GetCommand(const WCHAR *extra, WCHAR **command)
const WCHAR * str
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:542
Definition: id3.c:95
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:79
HRESULT GetExecutable(LPCWSTR pszExtra, LPWSTR path, DWORD pathlen, DWORD *len)
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
static FILE * out
Definition: regtests2xml.c:44
unsigned long DWORD
Definition: ntddk_ex.h:95
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLbitfield flags
Definition: glext.h:7161
HRESULT ReturnString(ASSOCF flags, LPWSTR out, DWORD *outlen, LPCWSTR data, DWORD datalen)
GLenum GLsizei len
Definition: glext.h:6722
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:606
virtual HRESULT STDMETHODCALLTYPE GetKey(ASSOCF flags, ASSOCKEY key, LPCWSTR pwszExtra, HKEY *phkeyOut)
ASSOCDATA
Definition: shlwapi.h:631
ASSOCSTR
Definition: shlwapi.h:601
DWORD ASSOCF
Definition: shlwapi.h:599
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:562
virtual HRESULT STDMETHODCALLTYPE Init(ASSOCF flags, LPCWSTR pwszAssoc, HKEY hkProgid, HWND hwnd)
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:640
Definition: name.c:38
ASSOCKEY
Definition: shlwapi.h:622
#define END_COM_MAP()
Definition: atlcom.h:553
WCHAR * LPWSTR
Definition: xmlstorage.h:184
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4022
virtual HRESULT STDMETHODCALLTYPE GetEnum(ASSOCF cfFlags, ASSOCENUM assocenum, LPCWSTR pszExtra, REFIID riid, LPVOID *ppvOut)
Definition: copy.c:22
ASSOCENUM
Definition: shlwapi.h:642