1 // VSSVersions.h : Declaration of the CVSSVersions
3 #ifndef __VSSVERSIONS_H_
4 #define __VSSVERSIONS_H_
6 #include "resource.h" // main symbols
7 //#import "C:\WINDOWS\system32\Stdole2.tlb" raw_interfaces_only, raw_native_types, no_namespace, named_guids
9 /////////////////////////////////////////////////////////////////////////////
11 class ATL_NO_VTABLE CVSSVersions
:
12 public CComObjectRootEx
<CComSingleThreadModel
>,
13 public CComCoClass
<CVSSVersions
, &CLSID_VSSVersions
>,
14 public IDispatchImpl
<IVSSVersions
, &IID_IVSSVersions
, &LIBID_SourceSafeTypeLib
>,
22 DECLARE_REGISTRY_RESOURCEID(IDR_VSSVERSIONS
)
24 DECLARE_PROTECT_FINAL_CONSTRUCT()
26 BEGIN_COM_MAP(CVSSVersions
)
27 COM_INTERFACE_ENTRY(IVSSVersions
)
28 COM_INTERFACE_ENTRY(IEnumVARIANT
)
29 COM_INTERFACE_ENTRY(IDispatch
)
34 STDMETHOD(_NewEnum
)(IUnknown
* * ppIEnum
);
37 STDMETHOD(Next
)(ULONG celt
, VARIANT
* rgvar
, ULONG
* pceltFetched
)
39 if (pceltFetched
== NULL
)
44 STDMETHOD(Skip
)(ULONG celt
)
52 STDMETHOD(Clone
)(IEnumVARIANT
* * ppenum
)
61 #endif //__VSSVERSIONS_H_