Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
1.2 KiB

#ifndef __DSPSPRT_H__
#define __DSPSPRT_H__
// get ITypeInfo uuid/lcid out of shdocvw's type library
HRESULT MSIEFTPGetTypeInfo(LCID lcid, UUID uuid, ITypeInfo **ppITypeInfo);
//
// Helper C++ class used to share code for the IDispatch implementations
//
// Inherit from this class passing this IDispatch's IID to the ctor
//
class CImpIDispatch
{
public:
// We need access to the virtual QI -- define it PURE here
virtual STDMETHODIMP QueryInterface(REFIID riid, LPVOID * ppvObj) PURE;
protected:
CImpIDispatch(const IID * piid);
~CImpIDispatch(void);
// For raising exceptions
void Exception(WORD);
// IDispatch members
STDMETHODIMP GetTypeInfoCount(UINT *);
STDMETHODIMP GetTypeInfo(UINT, LCID, ITypeInfo **);
STDMETHODIMP GetIDsOfNames(REFIID, OLECHAR **, UINT, LCID, DISPID *);
STDMETHODIMP Invoke(DISPID, REFIID, LCID, WORD, DISPPARAMS *, VARIANT *, EXCEPINFO *, UINT *);
private:
const IID *m_piid;
IDispatch *m_pdisp;
ITypeInfo *m_pITINeutral; // Cached Type information
};
#endif // __DSPSPRT_H__