Author: dchapyshev Date: Sun Mar 15 11:09:25 2009 New Revision: 40025
URL: http://svn.reactos.org/svn/reactos?rev=40025&view=rev Log: - Remove win16 stuff
Removed: trunk/reactos/dll/win32/oleaut32/ole2disp.c trunk/reactos/dll/win32/oleaut32/ole2disp.h trunk/reactos/dll/win32/oleaut32/ole2disp.spec trunk/reactos/dll/win32/oleaut32/typelib.spec trunk/reactos/dll/win32/oleaut32/typelib16.c trunk/reactos/dll/win32/olecli32/olecli.spec trunk/reactos/dll/win32/olecli32/olecli16.c
Removed: trunk/reactos/dll/win32/oleaut32/ole2disp.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/oleaut32/ole2disp... ============================================================================== --- trunk/reactos/dll/win32/oleaut32/ole2disp.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/oleaut32/ole2disp.c (removed) @@ -1,249 +1,0 @@ -/* - * OLE2DISP library - * - * Copyright 1995 Martin von Loewis - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#include "config.h" - -#include <stdarg.h> -#include <string.h> - -#include "wine/windef16.h" -#include "windef.h" -#include "winbase.h" -#include "wingdi.h" -#include "winuser.h" -#include "ole2.h" -#include "oleauto.h" -#include "winerror.h" - -#include "ole2disp.h" - -#include "wine/debug.h" - -WINE_DEFAULT_DEBUG_CHANNEL(ole); - -/* This implementation of the BSTR API is 16-bit only. It - represents BSTR as a 16:16 far pointer, and the strings - as ISO-8859 */ - -/****************************************************************************** - * BSTR_AllocBytes [Internal] - */ -static BSTR16 BSTR_AllocBytes(int n) -{ - void *ptr = HeapAlloc( GetProcessHeap(), 0, n ); - return (BSTR16)MapLS(ptr); -} - -/****************************************************************************** - * BSTR_Free [INTERNAL] - */ -static void BSTR_Free(BSTR16 in) -{ - void *ptr = MapSL( (SEGPTR)in ); - UnMapLS( (SEGPTR)in ); - HeapFree( GetProcessHeap(), 0, ptr ); -} - -/****************************************************************************** - * BSTR_GetAddr [INTERNAL] - */ -static void* BSTR_GetAddr(BSTR16 in) -{ - return in ? MapSL((SEGPTR)in) : 0; -} - -/****************************************************************************** - * SysAllocString [OLE2DISP.2] - * - * Create a BSTR16 from an OLESTR16 (16 Bit). - * - * PARAMS - * oleStr [I] Source to create BSTR16 from - * - * RETURNS - * Success: A BSTR16 allocated with SysAllocStringLen16(). - * Failure: NULL, if oleStr is NULL. - */ -BSTR16 WINAPI SysAllocString16(LPCOLESTR16 oleStr) -{ - BSTR16 out; - - if (!oleStr) return 0; - - out = BSTR_AllocBytes(strlen(oleStr)+1); - if (!out) return 0; - strcpy(BSTR_GetAddr(out),oleStr); - return out; -} - -/****************************************************************************** - * SysReallocString [OLE2DISP.3] - * - * Change the length of a previously created BSTR16 (16 Bit). - * - * PARAMS - * pbstr [I] BSTR16 to change the length of - * oleStr [I] New source for pbstr - * - * RETURNS - * Success: 1 - * Failure: 0. - * - * NOTES - * SysAllocStringStringLen16(). - */ -INT16 WINAPI SysReAllocString16(LPBSTR16 pbstr,LPCOLESTR16 oleStr) -{ - BSTR16 new=SysAllocString16(oleStr); - BSTR_Free(*pbstr); - *pbstr=new; - return 1; -} - -/****************************************************************************** - * SysAllocStringLen [OLE2DISP.4] - * - * Create a BSTR16 from an OLESTR16 of a given character length (16 Bit). - * - * PARAMS - * oleStr [I] Source to create BSTR16 from - * len [I] Length of oleStr in wide characters - * - * RETURNS - * Success: A newly allocated BSTR16 from SysAllocStringByteLen16() - * Failure: NULL, if len is >= 0x80000000, or memory allocation fails. - * - * NOTES - * See SysAllocStringByteLen16(). - */ -BSTR16 WINAPI SysAllocStringLen16(const char *oleStr, int len) -{ - BSTR16 out=BSTR_AllocBytes(len+1); - - if (!out) - return 0; - - /* - * Copy the information in the buffer. - * Since it is valid to pass a NULL pointer here, we'll initialize the - * buffer to nul if it is the case. - */ - if (oleStr != 0) - strcpy(BSTR_GetAddr(out),oleStr); - else - memset(BSTR_GetAddr(out), 0, len+1); - - return out; -} - -/****************************************************************************** - * SysReAllocStringLen [OLE2DISP.5] - * - * Change the length of a previously created BSTR16 (16 Bit). - * - * PARAMS - * pbstr [I] BSTR16 to change the length of - * oleStr [I] New source for pbstr - * len [I] Length of oleStr in characters - * - * RETURNS - * Success: 1. The size of pbstr is updated. - * Failure: 0, if len >= 0x8000 or memory allocation fails. - * - * NOTES - * See SysAllocStringByteLen16(). - * *pbstr may be changed by this function. - */ -int WINAPI SysReAllocStringLen16(BSTR16 *old,const char *in,int len) -{ - /* FIXME: Check input length */ - BSTR16 new=SysAllocStringLen16(in,len); - BSTR_Free(*old); - *old=new; - return 1; -} - -/****************************************************************************** - * SysFreeString [OLE2DISP.6] - * - * Free a BSTR16 (16 Bit). - * - * PARAMS - * str [I] String to free. - * - * RETURNS - * Nothing. - */ -void WINAPI SysFreeString16(BSTR16 str) -{ - BSTR_Free(str); -} - -/****************************************************************************** - * SysStringLen [OLE2DISP.7] - * - * Get the allocated length of a BSTR16 in characters (16 Bit). - * - * PARAMS - * str [I] BSTR16 to find the length of - * - * RETURNS - * The allocated length of str, or 0 if str is NULL. - */ -int WINAPI SysStringLen16(BSTR16 str) -{ - return strlen(BSTR_GetAddr(str)); -} - -/****************************************************************************** - * CreateDispTypeInfo [OLE2DISP.31] - */ -HRESULT WINAPI CreateDispTypeInfo16( - INTERFACEDATA *pidata, - LCID lcid, - ITypeInfo **pptinfo) -{ - FIXME("(%p,%d,%p),stub\n",pidata,lcid,pptinfo); - return E_NOTIMPL; -} - -/****************************************************************************** - * CreateStdDispatch [OLE2DISP.32] - */ -HRESULT WINAPI CreateStdDispatch16( - IUnknown* punkOuter, - void* pvThis, - ITypeInfo* ptinfo, - IUnknown** ppunkStdDisp) -{ - FIXME("(%p,%p,%p,%p),stub\n",punkOuter, pvThis, ptinfo, - ppunkStdDisp); - return 0; -} - -/****************************************************************************** - * RegisterActiveObject [OLE2DISP.35] - */ -HRESULT WINAPI RegisterActiveObject16( - IUnknown *punk, REFCLSID rclsid, DWORD dwFlags, unsigned long *pdwRegister -) { - FIXME("(%p,%s,0x%08x,%p):stub\n",punk,debugstr_guid(rclsid),dwFlags,pdwRegister); - return E_NOTIMPL; -}
Removed: trunk/reactos/dll/win32/oleaut32/ole2disp.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/oleaut32/ole2disp... ============================================================================== --- trunk/reactos/dll/win32/oleaut32/ole2disp.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/oleaut32/ole2disp.h (removed) @@ -1,42 +1,0 @@ -/* - * Copyright 1995 Martin von Loewis - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#ifndef __WINE_OLEAUT32_OLE2DISP_H -#define __WINE_OLEAUT32_OLE2DISP_H - -#include <stdarg.h> - -#include "windef.h" -#include "winbase.h" -#include "wtypes.h" -#include "wine/windef16.h" - -typedef CHAR OLECHAR16; -typedef LPSTR LPOLESTR16; -typedef LPCSTR LPCOLESTR16; -typedef OLECHAR16 *BSTR16; -typedef BSTR16 *LPBSTR16; - -BSTR16 WINAPI SysAllocString16(LPCOLESTR16); -BSTR16 WINAPI SysAllocStringLen16(const char*, int); -VOID WINAPI SysFreeString16(BSTR16); -INT16 WINAPI SysReAllocString16(LPBSTR16,LPCOLESTR16); -int WINAPI SysReAllocStringLen16(BSTR16*, const char*, int); -int WINAPI SysStringLen16(BSTR16); - -#endif /* !defined(__WINE_OLEAUT32_OLE2DISP_H) */
Removed: trunk/reactos/dll/win32/oleaut32/ole2disp.spec URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/oleaut32/ole2disp... ============================================================================== --- trunk/reactos/dll/win32/oleaut32/ole2disp.spec [iso-8859-1] (original) +++ trunk/reactos/dll/win32/oleaut32/ole2disp.spec (removed) @@ -1,135 +1,0 @@ -1 stub DLLGETCLASSOBJECT -2 pascal SysAllocString(str) SysAllocString16 -3 pascal SysReallocString(ptr str) SysReAllocString16 -4 pascal SysAllocStringLen(str word) SysAllocStringLen16 -5 pascal SysReAllocStringLen(ptr str word) SysReAllocStringLen16 -6 pascal SysFreeString(segstr) SysFreeString16 -7 pascal SysStringLen(segstr) SysStringLen16 -8 stub VARIANTINIT -9 stub VARIANTCLEAR -10 stub VARIANTCOPY -11 stub VARIANTCOPYIND -12 stub VARIANTCHANGETYPE -13 stub VARIANTTIMETODOSDATETIME -14 stub DOSDATETIMETOVARIANTTIME -15 stub SAFEARRAYCREATE -16 stub SAFEARRAYDESTROY -17 stub SAFEARRAYGETDIM -18 stub SAFEARRAYGETELEMSIZE -19 stub SAFEARRAYGETUBOUND -20 stub SAFEARRAYGETLBOUND -21 stub SAFEARRAYLOCK -22 stub SAFEARRAYUNLOCK -23 stub SAFEARRAYACCESSDATA -24 stub SAFEARRAYUNACCESSDATA -25 stub SAFEARRAYGETELEMENT -26 stub SAFEARRAYPUTELEMENT -27 stub SAFEARRAYCOPY -28 stub DISPGETPARAM -29 stub DISPGETIDSOFNAMES -30 stub DISPINVOKE -31 pascal CreateDispTypeInfo(ptr long ptr) CreateDispTypeInfo16 -32 pascal CreateStdDispatch(ptr ptr ptr ptr) CreateStdDispatch16 -33 stub _IID_IDISPATCH -34 stub _IID_IENUMVARIANT -35 pascal RegisterActiveObject(ptr ptr long ptr) RegisterActiveObject16 -36 stub REVOKEACTIVEOBJECT -37 stub GETACTIVEOBJECT -38 stub SAFEARRAYALLOCDESCRIPTOR -39 stub SAFEARRAYALLOCDATA -40 stub SAFEARRAYDESTROYDESCRIPTOR -41 stub SAFEARRAYDESTROYDATA -42 stub SAFEARRAYREDIM -43 stub VARI2FROMI4 -44 stub VARI2FROMR4 -45 stub VARI2FROMR8 -46 stub VARI2FROMCY -47 stub VARI2FROMDATE -48 stub VARI2FROMSTR -49 stub VARI2FROMDISP -50 stub VARI2FROMBOOL -51 stub VARI4FROMI2 -52 stub VARI4FROMR4 -53 stub VARI4FROMR8 -54 stub VARI4FROMCY -55 stub VARI4FROMDATE -56 stub VARI4FROMSTR -57 stub VARI4FROMDISP -58 stub VARI4FROMBOOL -59 stub VARR4FROMI2 -60 stub VARR4FROMI4 -61 stub VARR4FROMR8 -62 stub VARR4FROMCY -63 stub VARR4FROMDATE -64 stub VARR4FROMSTR -65 stub VARR4FROMDISP -66 stub VARR4FROMBOOL -67 stub VARR8FROMI2 -68 stub VARR8FROMI4 -69 stub VARR8FROMR4 -70 stub VARR8FROMCY -71 stub VARR8FROMDATE -72 stub VARR8FROMSTR -73 stub VARR8FROMDISP -74 stub VARR8FROMBOOL -75 stub VARDATEFROMI2 -76 stub VARDATEFROMI4 -77 stub VARDATEFROMR4 -78 stub VARDATEFROMR8 -79 stub VARDATEFROMCY -80 stub VARDATEFROMSTR -81 stub VARDATEFROMDISP -82 stub VARDATEFROMBOOL -83 stub VARCYFROMI2 -84 stub VARCYFROMI4 -85 stub VARCYFROMR4 -86 stub VARCYFROMR8 -87 stub VARCYFROMDATE -88 stub VARCYFROMSTR -89 stub VARCYFROMDISP -90 stub VARCYFROMBOOL -91 stub VARBSTRFROMI2 -92 stub VARBSTRFROMI4 -93 stub VARBSTRFROMR4 -94 stub VARBSTRFROMR8 -95 stub VARBSTRFROMCY -96 stub VARBSTRFROMDATE -97 stub VARBSTRFROMDISP -98 stub VARBSTRFROMBOOL -99 stub VARBOOLFROMI2 -100 stub VARBOOLFROMI4 -101 stub VARBOOLFROMR4 -102 stub VARBOOLFROMR8 -103 stub VARBOOLFROMDATE -104 stub VARBOOLFROMCY -105 stub VARBOOLFROMSTR -106 stub VARBOOLFROMDISP -107 stub DOINVOKEMETHOD -108 stub VARIANTCHANGETYPEEX -109 stub SAFEARRAYPTROFINDEX -110 stub SETERRORINFO -111 stub GETERRORINFO -112 stub CREATEERRORINFO -113 stub _IID_IERRORINFO -114 stub _IID_ICREATEERRORINFO -115 stub _IID_ISUPPORTERRORINFO -116 stub VARUI1FROMI2 -117 stub VARUI1FROMI4 -118 stub VARUI1FROMR4 -119 stub VARUI1FROMR8 -120 stub VARUI1FROMCY -121 stub VARUI1FROMDATE -122 stub VARUI1FROMSTR -123 stub VARUI1FROMDISP -124 stub VARUI1FROMBOOL -125 stub VARI2FROMUI1 -126 stub VARI4FROMUI1 -127 stub VARR4FROMUI1 -128 stub VARR8FROMUI1 -129 stub VARDATEFROMUI1 -130 stub VARCYFROMUI1 -131 stub VARBSTRFROMUI1 -132 stub VARBOOLFROMUI1 -133 stub DLLCANUNLOADNOW -#134 stub WEP -#135 stub ___EXPORTEDSTUB
Removed: trunk/reactos/dll/win32/oleaut32/typelib.spec URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/oleaut32/typelib.... ============================================================================== --- trunk/reactos/dll/win32/oleaut32/typelib.spec [iso-8859-1] (original) +++ trunk/reactos/dll/win32/oleaut32/typelib.spec (removed) @@ -1,12 +1,0 @@ -2 stub CREATETYPELIB -3 pascal LoadTypeLib(ptr ptr) LoadTypeLib16 -4 pascal LHashValOfNameSys(word long str) LHashValOfNameSysA -5 stub _IID_ICREATETYPEINFO -6 stub _IID_ICREATETYPELIB -7 stub _IID_ITYPECOMP -8 stub _IID_ITYPEINFO -9 stub _IID_ITYPELIB -10 stub REGISTERTYPELIB -11 stub LOADREGTYPELIB -14 pascal QueryPathOfRegTypeLib(ptr word word word ptr) QueryPathOfRegTypeLib16 -15 pascal OaBuildVersion() OaBuildVersion16
Removed: trunk/reactos/dll/win32/oleaut32/typelib16.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/oleaut32/typelib1... ============================================================================== --- trunk/reactos/dll/win32/oleaut32/typelib16.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/oleaut32/typelib16.c (removed) @@ -1,187 +1,0 @@ -/* - * TYPELIB 16bit part. - * - * Copyright 1997 Marcus Meissner - * Copyright 1999 Rein Klazes - * Copyright 2000 Francois Jacques - * Copyright 2001 Huw D M Davies for CodeWeavers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#include "config.h" -#include "wine/port.h" - -#include <stdlib.h> -#include <string.h> -#include <stdarg.h> -#include <stdio.h> -#include <ctype.h> - -#include "winerror.h" -#include "windef.h" -#include "winbase.h" -#include "winreg.h" -#include "winuser.h" - -#include "objbase.h" -#include "ole2disp.h" -#include "wine/debug.h" - -WINE_DEFAULT_DEBUG_CHANNEL(ole); - -/************************************************************************* - * TYPELIB {TYPELIB} - * - * This dll is the 16 bit version of the Typelib API, part the original - * implementation of Ole automation. It and its companion ole2disp.dll were - * superseded by oleaut32.dll which provides 32 bit implementations of these - * functions and greatly extends the Ole Api. - * - * Winelib developers cannot use these functions directly, they are implemented - * solely for backwards compatibility with existing legacy applications. - * - * SEE ALSO - * oleaut32(), ole2disp(). - */ - -/**************************************************************************** - * QueryPathOfRegTypeLib [TYPELIB.14] - * - * Get the registry key of a registered type library. - * - * RETURNS - * Success: S_OK. path is updated with the key name - * Failure: E_FAIL, if guid was not found in the registry - * - * NOTES - * The key takes the form "Classes\Typelib<guid><major>.<minor><lcid>\win16" - */ -HRESULT WINAPI -QueryPathOfRegTypeLib16( - REFGUID guid, /* [in] Guid to get the key name for */ - WORD wMaj, /* [in] Major version */ - WORD wMin, /* [in] Minor version */ - LCID lcid, /* [in] Locale Id */ - LPBSTR16 path) /* [out] Destination for the registry key name */ -{ - char xguid[80]; - char typelibkey[100],pathname[260]; - LONG plen; - - TRACE("\n"); - - if (HIWORD(guid)) { - sprintf( typelibkey, "SOFTWARE\Classes\Typelib\{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}\%d.%d\%x\win16", - guid->Data1, guid->Data2, guid->Data3, - guid->Data4[0], guid->Data4[1], guid->Data4[2], guid->Data4[3], - guid->Data4[4], guid->Data4[5], guid->Data4[6], guid->Data4[7], - wMaj,wMin,lcid); - } else { - sprintf(xguid,"<guid 0x%08x>",(DWORD)guid); - FIXME("(%s,%d,%d,0x%04x,%p),can't handle non-string guids.\n",xguid,wMaj,wMin,lcid,path); - return E_FAIL; - } - plen = sizeof(pathname); - if (RegQueryValueA(HKEY_LOCAL_MACHINE,typelibkey,pathname,&plen)) { - /* try again without lang specific id */ - if (SUBLANGID(lcid)) - return QueryPathOfRegTypeLib16(guid,wMaj,wMin,PRIMARYLANGID(lcid),path); - FIXME("key %s not found\n",typelibkey); - return E_FAIL; - } - *path = SysAllocString16(pathname); - return S_OK; -} - -/****************************************************************************** - * LoadTypeLib [TYPELIB.3] - * - * Load and register a type library. - * - * RETURNS - * Success: S_OK. pptLib contains the type libraries ITypeLib interface. - * Failure: An HRESULT error code. - * - * NOTES - * Both parameters are FAR pointers. - */ -HRESULT WINAPI LoadTypeLib16( - LPSTR szFile, /* [in] Name of file to load from */ - ITypeLib** pptLib) /* [out] Destination for loaded ITypeLib interface */ -{ - FIXME("(%s,%p): stub\n",debugstr_a(szFile),pptLib); - - if (pptLib!=0) - *pptLib=0; - - return E_FAIL; -} - -/**************************************************************************** - * OaBuildVersion (TYPELIB.15) - * - * Get the Ole Automation build version. - * - * PARAMS - * None - * - * RETURNS - * The build version. - * - * NOTES - * Known typelib.dll versions: - *| OLE Ver. Comments Date Build Ver. - *| -------- ------------------------- ---- --------- - *| OLE 2.01 Call not available 1993 N/A - *| OLE 2.02 1993-94 02 3002 - *| OLE 2.03 23 730 - *| OLE 2.03 03 3025 - *| OLE 2.03 W98 SE orig. file !! 1993-95 10 3024 - *| OLE 2.1 NT 1993-95 ?? ??? - *| OLE 2.3.1 W95 23 700 - *| OLE2 4.0 NT4SP6 1993-98 40 4277 - *| OLE 2.1 W2K 2000 10 3029 - *| OLE 2.1 WXP 2002 10 3029 - *| OLE 2.1 Vista 2007 10 3029 - */ -DWORD WINAPI OaBuildVersion16(void) -{ - /* FIXME: I'd like to return the highest currently known version value - * in case the user didn't force a --winver, but I don't know how - * to retrieve the "versionForced" info from misc/version.c :( - * (this would be useful in other places, too) */ - FIXME("If you get version error messages, please report them\n"); - switch(GetVersion() & 0x8000ffff) /* mask off build number */ - { - case 0x80000a03: /* WIN31 */ - return MAKELONG(3027, 3); /* WfW 3.11 */ - case 0x80000004: /* WIN95 */ - return MAKELONG(700, 23); /* Win95A */ - case 0x80000a04: /* WIN98 */ - return MAKELONG(3024, 10); /* W98 SE */ - case 0x00000004: /* NT4 */ - return MAKELONG(4277, 40); /* NT4 SP6 */ - case 0x00000005: /* W2K */ - return MAKELONG(3029, 10); /* W2K SP4 */ - case 0x00000105: /* WXP */ - return MAKELONG(3029, 10); /* WXP SP2 */ - case 0x00000006: /* Vista */ - return MAKELONG(3029, 10); /* Vista */ - default: - FIXME("Version value not known yet. Please investigate it!\n"); - return 0; - } -}
Removed: trunk/reactos/dll/win32/olecli32/olecli.spec URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/olecli32/olecli.s... ============================================================================== --- trunk/reactos/dll/win32/olecli32/olecli.spec [iso-8859-1] (original) +++ trunk/reactos/dll/win32/olecli32/olecli.spec (removed) @@ -1,178 +1,0 @@ -#1 WEP -2 stub OLEDELETE -3 stub OLESAVETOSTREAM -4 stub OLELOADFROMSTREAM -6 stub OLECLONE -7 stub OLECOPYFROMLINK -8 stub OLEEQUAL -9 pascal -ret16 OleQueryLinkFromClip(str word word) OleQueryLinkFromClip16 -10 pascal -ret16 OleQueryCreateFromClip(str word word) OleQueryCreateFromClip16 -11 pascal -ret16 OleCreateLinkFromClip (str segptr long str segptr word word) OleCreateLinkFromClip16 -12 pascal -ret16 OleCreateFromClip(str segptr long str long word word) OleCreateFromClip16 -13 stub OLECOPYTOCLIPBOARD -14 pascal -ret16 OleQueryType(ptr segptr) OleQueryType16 -15 stub OLESETHOSTNAMES -16 stub OLESETTARGETDEVICE -17 stub OLESETBOUNDS -18 stub OLEQUERYBOUNDS -19 stub OLEDRAW -20 stub OLEQUERYOPEN -21 stub OLEACTIVATE -22 stub OLEUPDATE -23 stub OLERECONNECT -24 stub OLEGETLINKUPDATEOPTIONS -25 stub OLESETLINKUPDATEOPTIONS -26 stub OLEENUMFORMATS -27 stub OLECLOSE -28 stub OLEGETDATA -29 stub OLESETDATA -30 stub OLEQUERYPROTOCOL -31 stub OLEQUERYOUTOFDATE -32 stub OLEOBJECTCONVERT -33 stub OLECREATEFROMTEMPLATE -34 stub OLECREATE -35 stub OLEQUERYRELEASESTATUS -36 stub OLEQUERYRELEASEERROR -37 stub OLEQUERYRELEASEMETHOD -38 stub OLECREATEFROMFILE -39 stub OLECREATELINKFROMFILE -40 stub OLERELEASE -41 pascal OleRegisterClientDoc(ptr ptr long ptr) OleRegisterClientDoc16 -42 pascal OleRevokeClientDoc(long) OleRevokeClientDoc16 -43 pascal OleRenameClientDoc(long ptr) OleRenameClientDoc16 -44 pascal -ret16 OleRevertClientDoc(long) OleRevertClientDoc16 -45 pascal OleSavedClientDoc(long) OleSavedClientDoc16 -46 stub OLERENAME -47 pascal -ret16 OleEnumObjects(long segptr) OleEnumObjects16 -48 stub OLEQUERYNAME -49 stub OLESETCOLORSCHEME -50 stub OLEREQUESTDATA -54 stub OLELOCKSERVER -55 stub OLEUNLOCKSERVER -56 stub OLEQUERYSIZE -57 stub OLEEXECUTE -58 stub OLECREATEINVISIBLE -59 stub OLEQUERYCLIENTVERSION -60 pascal -ret16 OleIsDcMeta(word) OleIsDcMeta16 -100 stub DOCWNDPROC -101 stub SRVRWNDPROC -102 stub MFCALLBACKFUNC -110 stub DEFLOADFROMSTREAM -111 stub DEFCREATEFROMCLIP -112 stub DEFCREATELINKFROMCLIP -113 stub DEFCREATEFROMTEMPLATE -114 stub DEFCREATE -115 stub DEFCREATEFROMFILE -116 stub DEFCREATELINKFROMFILE -117 stub DEFCREATEINVISIBLE -200 stub LERELEASE -201 stub LESHOW -202 stub LEGETDATA -203 stub LESETDATA -204 stub LESETHOSTNAMES -205 stub LESETTARGETDEVICE -206 stub LESETBOUNDS -207 stub LESAVETOSTREAM -208 stub LECLONE -209 stub LECOPYFROMLINK -210 stub LEEQUAL -211 stub LECOPY -212 stub LEQUERYTYPE -213 stub LEQUERYBOUNDS -214 stub LEDRAW -215 stub LEQUERYOPEN -216 stub LEACTIVATE -218 stub LEUPDATE -219 stub LERECONNECT -220 stub LEENUMFORMAT -221 stub LEQUERYPROTOCOL -222 stub LEQUERYOUTOFDATE -223 stub LEOBJECTCONVERT -224 stub LECHANGEDATA -225 stub LECLOSE -226 stub LEGETUPDATEOPTIONS -227 stub LESETUPDATEOPTIONS -228 stub LEEXECUTE -229 stub LEOBJECTLONG -230 stub LECREATEINVISIBLE -300 stub MFRELEASE -301 stub MFGETDATA -302 stub MFSAVETOSTREAM -303 stub MFCLONE -304 stub MFEQUAL -305 stub MFCOPY -307 stub MFQUERYBOUNDS -308 stub MFDRAW -309 stub MFENUMFORMAT -310 stub MFCHANGEDATA -400 stub BMRELEASE -401 stub BMGETDATA -402 stub BMSAVETOSTREAM -403 stub BMCLONE -404 stub BMEQUAL -405 stub BMCOPY -407 stub BMQUERYBOUNDS -408 stub BMDRAW -409 stub BMENUMFORMAT -410 stub BMCHANGEDATA -500 stub DIBRELEASE -501 stub DIBGETDATA -502 stub DIBSAVETOSTREAM -503 stub DIBCLONE -504 stub DIBEQUAL -505 stub DIBCOPY -507 stub DIBQUERYBOUNDS -508 stub DIBDRAW -509 stub DIBENUMFORMAT -510 stub DIBCHANGEDATA -600 stub GENRELEASE -601 stub GENGETDATA -602 stub GENSETDATA -603 stub GENSAVETOSTREAM -604 stub GENCLONE -605 stub GENEQUAL -606 stub GENCOPY -608 stub GENQUERYBOUNDS -609 stub GENDRAW -610 stub GENENUMFORMAT -611 stub GENCHANGEDATA -701 stub ERRSHOW -702 stub ERRSETDATA -703 stub ERRSETHOSTNAMES -704 stub ERRSETTARGETDEVICE -705 stub ERRSETBOUNDS -706 stub ERRCOPYFROMLINK -707 stub ERRQUERYOPEN -708 stub ERRACTIVATE -709 stub ERRCLOSE -710 stub ERRUPDATE -711 stub ERRRECONNECT -712 stub ERRQUERYPROTOCOL -713 stub ERRQUERYOUTOFDATE -714 stub ERROBJECTCONVERT -715 stub ERRGETUPDATEOPTIONS -716 stub ERRSETUPDATEOPTIONS -717 stub ERREXECUTE -718 stub ERROBJECTLONG -800 stub PBLOADFROMSTREAM -801 stub PBCREATEFROMCLIP -802 stub PBCREATELINKFROMCLIP -803 stub PBCREATEFROMTEMPLATE -804 stub PBCREATE -805 stub PBDRAW -806 stub PBQUERYBOUNDS -807 stub PBCOPYTOCLIPBOARD -808 stub PBCREATEFROMFILE -809 stub PBCREATELINKFROMFILE -810 stub PBENUMFORMATS -811 stub PBGETDATA -812 stub PBCREATEINVISIBLE -910 stub OBJQUERYNAME -911 stub OBJRENAME -912 stub OBJQUERYTYPE -913 stub OBJQUERYSIZE -950 stub CONNECTDLGPROC -951 stub SETNETNAME -952 stub CHECKNETDRIVE -953 stub SETNEXTNETDRIVE -954 stub GETTASKVISIBLEWINDOW
Removed: trunk/reactos/dll/win32/olecli32/olecli16.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/olecli32/olecli16... ============================================================================== --- trunk/reactos/dll/win32/olecli32/olecli16.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/olecli32/olecli16.c (removed) @@ -1,203 +1,0 @@ -/* - * OLECLI library - * - * Copyright 1995 Martin von Loewis - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -/* At the moment, these are only empty stubs. - */ - -#include "config.h" - -#include <stdarg.h> - -#include "windef.h" -#include "wine/windef16.h" -#include "winbase.h" -#include "wingdi.h" -#include "wownt32.h" -#include "objbase.h" -#include "olecli.h" -#include "wine/debug.h" - -WINE_DEFAULT_DEBUG_CHANNEL(ole); - -typedef struct _OLEOBJECTVTBL16 { - void CALLBACK *(*QueryProtocol)(_LPOLEOBJECT,LPCOLESTR16); - OLESTATUS (CALLBACK *Release)(_LPOLEOBJECT); - OLESTATUS (CALLBACK *Show)(_LPOLEOBJECT,BOOL16); - OLESTATUS (CALLBACK *DoVerb)(_LPOLEOBJECT,UINT16,BOOL16,BOOL16); - OLESTATUS (CALLBACK *GetData)(_LPOLEOBJECT,OLECLIPFORMAT,HANDLE16 *); - OLESTATUS (CALLBACK *SetData)(_LPOLEOBJECT,OLECLIPFORMAT,HANDLE16); - OLESTATUS (CALLBACK *SetTargetDevice)(_LPOLEOBJECT,HGLOBAL16); - OLESTATUS (CALLBACK *SetBounds)(_LPOLEOBJECT,LPRECT16); - OLESTATUS (CALLBACK *EnumFormats)(_LPOLEOBJECT,OLECLIPFORMAT); - OLESTATUS (CALLBACK *SetColorScheme)(_LPOLEOBJECT,struct tagLOGPALETTE*); - OLESTATUS (CALLBACK *Delete)(_LPOLEOBJECT); - OLESTATUS (CALLBACK *SetHostNames)(_LPOLEOBJECT,LPCOLESTR16,LPCOLESTR16); - OLESTATUS (CALLBACK *SaveToStream)(_LPOLEOBJECT,struct _OLESTREAM*); - OLESTATUS (CALLBACK *Clone)(_LPOLEOBJECT,LPOLECLIENT,LHCLIENTDOC,LPCOLESTR16,_LPOLEOBJECT *); - OLESTATUS (CALLBACK *CopyFromLink)(_LPOLEOBJECT,LPOLECLIENT,LHCLIENTDOC,LPCOLESTR16,_LPOLEOBJECT *); - OLESTATUS (CALLBACK *Equal)(_LPOLEOBJECT,_LPOLEOBJECT); - OLESTATUS (CALLBACK *CopyToClipBoard)(_LPOLEOBJECT); - OLESTATUS (CALLBACK *Draw)(_LPOLEOBJECT,HDC16,LPRECT16,LPRECT16,HDC16); - OLESTATUS (CALLBACK *Activate)(_LPOLEOBJECT,UINT16,BOOL16,BOOL16,HWND16,LPRECT16); - OLESTATUS (CALLBACK *Execute)(_LPOLEOBJECT,HGLOBAL16,UINT16); - OLESTATUS (CALLBACK *Close)(_LPOLEOBJECT); - OLESTATUS (CALLBACK *Update)(_LPOLEOBJECT); - OLESTATUS (CALLBACK *Reconnect)(_LPOLEOBJECT); - OLESTATUS (CALLBACK *ObjectConvert)(_LPOLEOBJECT,LPCOLESTR16,LPOLECLIENT,LHCLIENTDOC,LPCOLESTR16,_LPOLEOBJECT*); - OLESTATUS (CALLBACK *GetLinkUpdateOptions)(_LPOLEOBJECT,LPOLEOPT_UPDATE); - OLESTATUS (CALLBACK *SetLinkUpdateOptions)(_LPOLEOBJECT,OLEOPT_UPDATE); - OLESTATUS (CALLBACK *Rename)(_LPOLEOBJECT,LPCOLESTR16); - OLESTATUS (CALLBACK *QueryName)(_LPOLEOBJECT,LPSTR,LPUINT16); - OLESTATUS (CALLBACK *QueryType)(_LPOLEOBJECT,LPLONG); - OLESTATUS (CALLBACK *QueryBounds)(_LPOLEOBJECT,LPRECT16); - OLESTATUS (CALLBACK *QuerySize)(_LPOLEOBJECT,LPDWORD); - OLESTATUS (CALLBACK *QueryOpen)(_LPOLEOBJECT); - OLESTATUS (CALLBACK *QueryOutOfDate)(_LPOLEOBJECT); - OLESTATUS (CALLBACK *QueryReleaseStatus)(_LPOLEOBJECT); - OLESTATUS (CALLBACK *QueryReleaseError)(_LPOLEOBJECT); - OLE_RELEASE_METHOD (CALLBACK *QueryReleaseMethod)(_LPOLEOBJECT); - OLESTATUS (CALLBACK *RequestData)(_LPOLEOBJECT,OLECLIPFORMAT); - OLESTATUS (CALLBACK *ObjectLong)(_LPOLEOBJECT,UINT16,LPLONG); -} OLEOBJECTVTBL; -typedef OLEOBJECTVTBL *LPOLEOBJECTVTBL; - -typedef struct _OLEOBJECT -{ - const OLEOBJECTVTBL *lpvtbl; -} OLEOBJECT16; - -static LONG OLE_current_handle; - -/****************************************************************************** - * OleSavedClientDoc [OLECLI.45] - */ -OLESTATUS WINAPI OleSavedClientDoc16(LHCLIENTDOC hDoc) -{ - FIXME("(%d: stub\n", hDoc); - return OLE_OK; -} - -/****************************************************************************** - * OleRegisterClientDoc [OLECLI.41] - */ -OLESTATUS WINAPI OleRegisterClientDoc16(LPCSTR classname, LPCSTR docname, - LONG reserved, LHCLIENTDOC *hRet ) -{ - FIXME("(%s,%s,...): stub\n",classname,docname); - *hRet=++OLE_current_handle; - return OLE_OK; -} - -/****************************************************************************** - * OleRenameClientDoc [OLECLI.43] - */ -OLESTATUS WINAPI OleRenameClientDoc16(LHCLIENTDOC hDoc, LPCSTR newName) -{ - FIXME("(%d,%s,...): stub\n",hDoc, newName); - return OLE_OK; -} - -/****************************************************************************** - * OleRevokeClientDoc [OLECLI.42] - */ -OLESTATUS WINAPI OleRevokeClientDoc16(LHCLIENTDOC hServerDoc) -{ - FIXME("(%d): stub\n",hServerDoc); - return OLE_OK; -} - -/****************************************************************************** - * OleRevertClientDoc [OLECLI.44] - */ -OLESTATUS WINAPI OleRevertClientDoc16(LHCLIENTDOC hServerDoc) -{ - FIXME("(%d): stub\n", hServerDoc); - return OLE_OK; -} - -/****************************************************************************** - * OleEnumObjects [OLECLI.47] - */ -OLESTATUS WINAPI OleEnumObjects16(LHCLIENTDOC hServerDoc, SEGPTR data) -{ - FIXME("(%d, %04x:%04x): stub\n", hServerDoc, HIWORD(data), - LOWORD(data)); - return OLE_OK; -} - -/****************************************************************************** - * OleCreateLinkFromClip [OLECLI.11] - */ -OLESTATUS WINAPI OleCreateLinkFromClip16( LPCSTR name, SEGPTR olecli, LHCLIENTDOC hclientdoc, - LPCSTR xname, SEGPTR lpoleob, UINT16 render, - UINT16 clipformat ) -{ - FIXME("(%s, %04x:%04x, %d, %s, %04x:%04x, %d, %d): stub!\n", - name, HIWORD(olecli), LOWORD(olecli), hclientdoc, xname, HIWORD(lpoleob), - LOWORD(lpoleob), render, clipformat); - return OLE_OK; -} - -/****************************************************************************** - * OleQueryLinkFromClip [OLECLI.9] - */ -OLESTATUS WINAPI OleQueryLinkFromClip16(LPCSTR name, UINT16 render, UINT16 clipformat) -{ - FIXME("(%s, %d, %d): stub!\n", name, render, clipformat); - return OLE_OK; -} - -/****************************************************************************** - * OleQueryCreateFromClip [OLECLI.10] - */ -OLESTATUS WINAPI OleQueryCreateFromClip16(LPCSTR name, UINT16 render, UINT16 clipformat) -{ - FIXME("(%s, %d, %d): stub!\n", name, render, clipformat); - return OLE_OK; -} - -/****************************************************************************** - * OleIsDcMeta [OLECLI.60] - */ -BOOL16 WINAPI OleIsDcMeta16(HDC16 hdc) -{ - return GetObjectType( HDC_32(hdc) ) == OBJ_METADC; -} - -/****************************************************************************** - * OleQueryType [OLECLI.14] - */ -OLESTATUS WINAPI OleQueryType16(_LPOLEOBJECT oleob, SEGPTR xlong) { - FIXME("(%p, %p): stub!\n", oleob, MapSL(xlong)); - return OLE_OK; -} - -/****************************************************************************** - * OleCreateFromClip [OLECLI.12] - */ -OLESTATUS WINAPI OleCreateFromClip16( LPCSTR name, SEGPTR olecli, LHCLIENTDOC hclientdoc, - LPCSTR xname, SEGPTR lpoleob, - UINT16 render, UINT16 clipformat ) -{ - FIXME("(%s, %04x:%04x, %d, %s, %04x:%04x, %d, %d): stub!\n", - name, HIWORD(olecli), LOWORD(olecli), hclientdoc, xname, HIWORD(lpoleob), - LOWORD(lpoleob), render, clipformat); - return OLE_OK; -}