Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenole2.h
Go to the documentation of this file.
00001 /* 00002 * Declarations for OLE2 00003 * 00004 * Copyright (C) the Wine project 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00019 */ 00020 00021 #ifndef __WINE_OLE2_H 00022 #define __WINE_OLE2_H 00023 00024 #include <winerror.h> 00025 #include <objbase.h> 00026 #include <oleauto.h> 00027 #include <oleidl.h> 00028 00029 struct tagMSG; 00030 00031 #ifdef __cplusplus 00032 extern "C" { 00033 #endif /* defined(__cplusplus) */ 00034 00035 #define E_DRAW VIEW_E_DRAW 00036 #define DATA_E_FORMATETC DV_E_FORMATETC 00037 00038 #define OLEIVERB_PRIMARY (0L) 00039 #define OLEIVERB_SHOW (-1L) 00040 #define OLEIVERB_OPEN (-2L) 00041 #define OLEIVERB_HIDE (-3L) 00042 #define OLEIVERB_UIACTIVATE (-4L) 00043 #define OLEIVERB_INPLACEACTIVATE (-5L) 00044 #define OLEIVERB_DISCARDUNDOSTATE (-6L) 00045 #define OLEIVERB_PROPERTIES (-7L) 00046 00047 #define EMBDHLP_INPROC_HANDLER 0x00000000 00048 #define EMBDHLP_INPROC_SERVER 0x00000001 00049 #define EMBDHLP_CREATENOW 0x00000000 00050 #define EMBDHLP_DELAYCREATE 0x00010000 00051 00052 /* 00053 * API declarations 00054 */ 00055 HRESULT WINAPI RegisterDragDrop(HWND,LPDROPTARGET); 00056 HRESULT WINAPI RevokeDragDrop(HWND); 00057 HRESULT WINAPI DoDragDrop(LPDATAOBJECT,LPDROPSOURCE,DWORD,DWORD*); 00058 HRESULT WINAPI OleLoadFromStream(IStream *pStm,REFIID iidInterface,void** ppvObj); 00059 HRESULT WINAPI OleSaveToStream(IPersistStream *pPStm,IStream *pStm); 00060 HOLEMENU WINAPI OleCreateMenuDescriptor(HMENU hmenuCombined,LPOLEMENUGROUPWIDTHS lpMenuWidths); 00061 HRESULT WINAPI OleDestroyMenuDescriptor(HOLEMENU hmenuDescriptor); 00062 HRESULT WINAPI OleSetMenuDescriptor(HOLEMENU hmenuDescriptor,HWND hwndFrame,HWND hwndActiveObject,LPOLEINPLACEFRAME lpFrame,LPOLEINPLACEACTIVEOBJECT lpActiveObject); 00063 00064 HRESULT WINAPI WriteClassStg(IStorage *pstg, REFCLSID rclsid); 00065 HRESULT WINAPI ReadClassStg(IStorage *pstg,CLSID *pclsid); 00066 HRESULT WINAPI WriteClassStm(IStream *pStm,REFCLSID rclsid); 00067 HRESULT WINAPI ReadClassStm(IStream *pStm,CLSID *pclsid); 00068 00069 00070 HRESULT WINAPI OleSave(LPPERSISTSTORAGE pPS, LPSTORAGE pStg, BOOL fSameAsLoad); 00071 HRESULT WINAPI OleRegGetUserType(REFCLSID clsid, 00072 DWORD dwFormOfType, 00073 LPOLESTR* pszUserType); 00074 HRESULT WINAPI OleRegGetMiscStatus (REFCLSID clsid, DWORD dwAspect, DWORD* pdwStatus); 00075 HRESULT WINAPI OleRegEnumFormatEtc (REFCLSID clsid, 00076 DWORD dwDirection, 00077 LPENUMFORMATETC* ppenumFormatetc); 00078 HRESULT WINAPI CreateStreamOnHGlobal (HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPSTREAM* ppstm); 00079 HRESULT WINAPI GetHGlobalFromStream(LPSTREAM pstm, HGLOBAL* phglobal); 00080 HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum); 00081 BOOL WINAPI OleIsRunning(LPOLEOBJECT pObject); 00082 HRESULT WINAPI OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid, 00083 DWORD renderopt, LPFORMATETC pFormatEtc, 00084 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, 00085 LPVOID* ppvObj); 00086 HRESULT WINAPI OleSetContainedObject(LPUNKNOWN pUnknown, BOOL fContained); 00087 HRESULT WINAPI OleNoteObjectVisible(LPUNKNOWN pUnknown, BOOL fVisible); 00088 HRESULT WINAPI OleQueryLinkFromData(IDataObject* pSrcDataObject); 00089 HRESULT WINAPI OleQueryCreateFromData(LPDATAOBJECT pSrcDataObject); 00090 HRESULT WINAPI OleRun(LPUNKNOWN pUnknown); 00091 HRESULT WINAPI OleDraw(LPUNKNOWN pUnknown, DWORD dwAspect, HDC hdcDraw, LPCRECT lprcBounds); 00092 VOID WINAPI ReleaseStgMedium(LPSTGMEDIUM); 00093 HRESULT WINAPI OleGetClipboard(IDataObject** ppDataObj); 00094 HRESULT WINAPI OleIsCurrentClipboard(LPDATAOBJECT); 00095 HRESULT WINAPI OleSetClipboard(LPDATAOBJECT); 00096 HRESULT WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid, 00097 DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite, 00098 LPSTORAGE pStg, LPVOID* ppvObj); 00099 HRESULT WINAPI ReadFmtUserTypeStg(LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lplpszUserType); 00100 HRESULT WINAPI OleLoad(LPSTORAGE pStg, REFIID riid, LPOLECLIENTSITE pClientSite, LPVOID* ppvObj); 00101 HRESULT WINAPI GetHGlobalFromILockBytes(LPLOCKBYTES plkbyt, HGLOBAL* phglobal); 00102 HRESULT WINAPI CreateILockBytesOnHGlobal(HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPLOCKBYTES* pplkbyt); 00103 HRESULT WINAPI CreateDataAdviseHolder(LPDATAADVISEHOLDER* ppDAHolder); 00104 HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseTypeAsLabel); 00105 HGLOBAL WINAPI OleGetIconOfFile(LPOLESTR lpszPath, BOOL fUseFileAsLabel); 00106 HGLOBAL WINAPI OleMetafilePictFromIconAndLabel(HICON hIcon, LPOLESTR lpszLabel, LPOLESTR lpszSourceFile, UINT iIconIndex); 00107 HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses); 00108 HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid, 00109 DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj); 00110 HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc, 00111 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj); 00112 HRESULT WINAPI OleCreate(REFCLSID rclsid, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite, 00113 LPSTORAGE pStg, LPVOID* ppvObj); 00114 HRESULT WINAPI OleFlushClipboard(void); 00115 HRESULT WINAPI GetConvertStg(LPSTORAGE pStg); 00116 HRESULT WINAPI SetConvertStg(LPSTORAGE pStg, BOOL fConvert); 00117 BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, struct tagMSG* lpMsg, WORD* lpwCmd); 00118 HRESULT WINAPI OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc, 00119 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj); 00120 HANDLE WINAPI OleDuplicateData(HANDLE hSrc, CLIPFORMAT cfFormat, UINT uiFlags); 00121 HRESULT WINAPI WriteFmtUserTypeStg(LPSTORAGE pstg, CLIPFORMAT cf, LPOLESTR lpszUserType); 00122 HRESULT WINAPI OleTranslateAccelerator (LPOLEINPLACEFRAME lpFrame, LPOLEINPLACEFRAMEINFO lpFrameInfo, struct tagMSG* lpmsg); 00123 HRESULT WINAPI OleCreateFromData(LPDATAOBJECT pSrcDataObj, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc, 00124 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj); 00125 HRESULT WINAPI OleCreateFromDataEx(LPDATAOBJECT pSrcDataObj, REFIID riid, DWORD dwFlags, DWORD renderopt, ULONG num_formats, 00126 DWORD *adv_flags, LPFORMATETC fmts, IAdviseSink *sink, DWORD *conns, 00127 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj); 00128 HRESULT WINAPI OleCreateDefaultHandler(REFCLSID clsid, 00129 LPUNKNOWN pUnkOuter, 00130 REFIID riid, 00131 LPVOID* ppvObj); 00132 HRESULT WINAPI OleCreateEmbeddingHelper(REFCLSID clsid, 00133 LPUNKNOWN pUnkOuter, 00134 DWORD flags, 00135 IClassFactory *pCF, 00136 REFIID riid, 00137 LPVOID* ppvObj); 00138 HRESULT WINAPI CreateOleAdviseHolder (LPOLEADVISEHOLDER *ppOAHolder); 00139 HRESULT WINAPI OleInitialize(LPVOID pvReserved); 00140 void WINAPI OleUninitialize(void); 00141 BOOL WINAPI IsValidInterface(LPUNKNOWN punk); 00142 DWORD WINAPI OleBuildVersion(VOID); 00143 00144 /* 00145 * OLE version conversion declarations 00146 */ 00147 00148 00149 typedef struct _OLESTREAM* LPOLESTREAM; 00150 typedef struct _OLESTREAMVTBL { 00151 DWORD (CALLBACK *Get)(LPOLESTREAM,LPSTR,DWORD); 00152 DWORD (CALLBACK *Put)(LPOLESTREAM,LPSTR,DWORD); 00153 } OLESTREAMVTBL; 00154 typedef OLESTREAMVTBL* LPOLESTREAMVTBL; 00155 typedef struct _OLESTREAM { 00156 LPOLESTREAMVTBL lpstbl; 00157 } OLESTREAM; 00158 00159 HRESULT WINAPI OleConvertOLESTREAMToIStorage( LPOLESTREAM lpolestream, LPSTORAGE pstg, const DVTARGETDEVICE* ptd); 00160 HRESULT WINAPI OleConvertIStorageToOLESTREAM( LPSTORAGE pstg, LPOLESTREAM lpolestream); 00161 00162 HRESULT WINAPI OleDoAutoConvert( LPSTORAGE pStg, LPCLSID pClsidNew ); 00163 HRESULT WINAPI OleGetAutoConvert( REFCLSID clsidOld, LPCLSID pClsidNew ); 00164 HRESULT WINAPI OleSetAutoConvert( REFCLSID clsidOld, REFCLSID clsidNew ); 00165 00166 #ifdef __cplusplus 00167 } /* extern "C" */ 00168 #endif /* defined(__cplusplus) */ 00169 00170 #endif /* __WINE_OLE2_H */ Generated on Sun May 27 2012 04:32:12 for ReactOS by
1.7.6.1
|