Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Generated .IDL/C++ pseudo source equivalent of Win32 type library ..\<Unknown>
- [
- uuid({50F16B18-467E-11D1-8271-00C04FC3183B}),
- version(1.0),
- helpstring("Preview 1.0 Type Library")
- ]
- library PREVIEWLib
- {
- // Forward references and typedefs
- dispinterface IPreview;
- dispinterface IPreview2;
- interface IPreview3;
- interface IImgCmdTarget;
- dispinterface DPreviewEvents;
- [
- uuid({50F16B25-467E-11D1-8271-00C04FC3183B}),
- helpstring("IPreview Interface")
- ]
- dispinterface IPreview
- {
- properties:
- methods:
- [id(0), restricted] void QueryInterface(
- [in] GUID* riid,
- [out] void** ppvObj);
- [id(1), restricted] unsigned long AddRef();
- [id(2), restricted] unsigned long Release();
- [id(3), restricted] void GetTypeInfoCount([out] unsigned int* pctinfo);
- [id(4), restricted] void GetTypeInfo(
- [in] unsigned int itinfo,
- [in] unsigned long lcid,
- [out] void** pptinfo);
- [id(5), restricted] void GetIDsOfNames(
- [in] GUID* riid,
- [in] char** rgszNames,
- [in] unsigned int cNames,
- [in] unsigned long lcid,
- [out] long* rgdispid);
- [id(6), restricted] void Invoke(
- [in] long dispidMember,
- [in] GUID* riid,
- [in] unsigned long lcid,
- [in] unsigned short wFlags,
- [in] DISPPARAMS* pdispparams,
- [out] VARIANT* pvarResult,
- [out] EXCEPINFO* pexcepinfo,
- [out] unsigned int* puArgErr);
- [id(7), helpstring("method ShowFile")] void ShowFile(
- BSTR bstrFileName,
- int iSelectCount);
- [id(8), propget, helpstring("property printable")] long printable();
- [id(9), propput, helpstring("property printable")] void printable([in] long rhs);
- [id(10), propget, helpstring("property cxImage")] long cxImage();
- [id(11), propget, helpstring("property cyImage")] long cyImage();
- [id(12), helpstring("method Show")] void Show(VARIANT var);
- };
- [
- uuid({0AE0A2B1-3A34-11D3-9626-00C04F8EEC8C}),
- helpstring("IPreview2 Interface")
- ]
- dispinterface IPreview2
- {
- properties:
- methods:
- [id(0), restricted] void QueryInterface(
- [in] GUID* riid,
- [out] void** ppvObj);
- [id(1), restricted] unsigned long AddRef();
- [id(2), restricted] unsigned long Release();
- [id(3), restricted] void GetTypeInfoCount([out] unsigned int* pctinfo);
- [id(4), restricted] void GetTypeInfo(
- [in] unsigned int itinfo,
- [in] unsigned long lcid,
- [out] void** pptinfo);
- [id(5), restricted] void GetIDsOfNames(
- [in] GUID* riid,
- [in] char** rgszNames,
- [in] unsigned int cNames,
- [in] unsigned long lcid,
- [out] long* rgdispid);
- [id(6), restricted] void Invoke(
- [in] long dispidMember,
- [in] GUID* riid,
- [in] unsigned long lcid,
- [in] unsigned short wFlags,
- [in] DISPPARAMS* pdispparams,
- [out] VARIANT* pvarResult,
- [out] EXCEPINFO* pexcepinfo,
- [out] unsigned int* puArgErr);
- [id(7), helpstring("method ShowFile")] void ShowFile(
- BSTR bstrFileName,
- int iSelectCount);
- [id(8), propget, helpstring("property printable")] long printable();
- [id(9), propput, helpstring("property printable")] void printable([in] long rhs);
- [id(10), propget, helpstring("property cxImage")] long cxImage();
- [id(11), propget, helpstring("property cyImage")] long cyImage();
- [id(12), helpstring("method Show")] void Show(VARIANT var);
- [id(13), helpstring("zoom the image")] void Zoom([in] int iSelectCount);
- [id(14), helpstring("fit image to window")] void BestFit();
- [id(15), helpstring("show image at actual size")] void ActualSize();
- [id(16), helpstring("start a slideshow")] void SlideShow();
- };
- [
- odl,
- uuid({497431AD-5481-4DF7-AE5D-130D9CD50DB3}),
- helpstring("IPreview3 Interface")
- ]
- interface IPreview3 : IUnknown
- {
- HRESULT _stdcall ShowFile(BSTR bstrFileName);
- HRESULT _stdcall Show(VARIANT var);
- HRESULT _stdcall Zoom([in] int iSelectCount);
- HRESULT _stdcall BestFit();
- HRESULT _stdcall ActualSize();
- HRESULT _stdcall SlideShow();
- HRESULT _stdcall Rotate([in] unsigned long dwAngle);
- HRESULT _stdcall SetWallpaper([in] BSTR bstrPath);
- HRESULT _stdcall SaveAs([in] BSTR bstrPath);
- [propget] HRESULT _stdcall cxImage([out, retval] long* pVal);
- [propget] HRESULT _stdcall cyImage([out, retval] long* pVal);
- };
- [
- odl,
- uuid({FF36E952-72E9-4EA0-92FB-B63FE5037D78}),
- helpstring("IImgCmdTarget Interface")
- ]
- interface IImgCmdTarget : IUnknown
- {
- HRESULT _stdcall GetMode(unsigned long* pdw);
- HRESULT _stdcall GetPageFlags(unsigned long* pdw);
- HRESULT _stdcall ZoomIn();
- HRESULT _stdcall ZoomOut();
- HRESULT _stdcall ActualSize();
- HRESULT _stdcall BestFit();
- HRESULT _stdcall Rotate([in] unsigned long dwAngle);
- HRESULT _stdcall NextPage();
- HRESULT _stdcall PreviousPage();
- };
- [
- uuid({1B490296-50DF-11D1-8B44-00C04FC3183B}),
- helpstring("Event interface for ThumbCtl")
- ]
- dispinterface DPreviewEvents
- {
- properties:
- methods:
- [id(0), helpstring("The preview is closing.")] void OnClose();
- [id(1), helpstring("The preview image has been generated.")] void OnPreviewReady();
- [id(2), helpstring("There was an error generating the preview.")] void OnError();
- [id(3), helpstring("User chose Best Fit.")] void OnBestFitPress();
- [id(4), helpstring("User chose Actual Size.")] void OnActualSizePress();
- };
- [
- uuid({50F16B26-467E-11D1-8271-00C04FC3183B}),
- helpstring("Preview Class")
- ]
- coclass Preview
- {
- [default] dispinterface IPreview2;
- [default, source] dispinterface DPreviewEvents;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement