- Timestamp:
- May 17, 2002, 12:18:06 PM (23 years ago)
- Location:
- trunk/src/oleaut32
- Files:
-
- 3 added
- 5 deleted
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/oleaut32/LICENSE.TXT
r6379 r8450 1 $Id: LICENSE.TXT,v 1. 2 2001-07-21 08:48:50sandervl Exp $2 @cThis is an additional Odin license agreement.3 @cIt supercedes the main Odin license, but is only valid in4 @cthe source directory in which it is present.1 $Id: LICENSE.TXT,v 1.3 2002-05-17 10:16:57 sandervl Exp $ 2 This is an additional Odin license agreement. 3 It supercedes the main Odin license, but is only valid in 4 the source directory in which it is present. 5 5 6 @c This file is processed by GNU's TeXinfo 7 @c If you modify it or move it to another location, make sure that 8 @c TeXinfo works (type `make' in directory documentation). 9 10 Copyright (c) 1993-2000 the Wine project authors (see the file AUTHORS 6 Copyright (c) 1993-2002 the Wine project authors (see the file AUTHORS 11 7 for a complete list) 12 8 13 Permission is hereby granted, free of charge, to any person obtaining a copy 14 of this software and associated documentation files (the "Software"), to deal 15 in the Software without restriction, including without limitation the rights 16 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 17 copies of the Software, and to permit persons to whom the Software is 18 furnished to do so, subject to the following conditions: 9 Wine is free software; you can redistribute it and/or modify it under 10 the terms of the GNU Lesser General Public License as published by the 11 Free Software Foundation; either version 2.1 of the License, or (at 12 your option) any later version. 19 13 20 The above copyright notice and this permission notice shall be included in 21 all copies or substantial portions of the Software. 14 This program is distributed in the hope that it will be useful, but 15 WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 Lesser General Public License for more details. 22 18 23 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 24 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 25 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 26 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 27 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 28 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 A copy of the GNU Lesser General Public License is included in the 20 Wine distribution in the file COPYING.LIB. If you did not receive this 21 copy, write to the Free Software Foundation, Inc., 59 Temple Place, 22 Suite 330, Boston, MA 02111-1307 USA. -
trunk/src/oleaut32/connpt.c
r6711 r8450 4 4 * Copyright 2000 Huw D M Davies for CodeWeavers 5 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 * 20 * NOTES: 6 21 * See one exported function here is CreateConnectionPoint, see 7 22 * comments just above that function for information. 8 23 */ 9 10 24 #ifdef __WIN32OS2__ 11 25 #define HAVE_FLOAT_H 12 26 #define WINE_LARGE_INTEGER 13 27 #include "oleaut32.h" 28 14 29 #endif 15 30 16 31 #include <assert.h> 32 #include <string.h> 17 33 #include "winerror.h" 18 34 #include "winbase.h" … … 25 41 #include "connpt.h" 26 42 27 #include " debugtools.h"28 29 DEFAULT_DEBUG_CHANNEL(ole);43 #include "wine/debug.h" 44 45 WINE_DEFAULT_DEBUG_CHANNEL(ole); 30 46 31 47 #define MAXSINKS 10 -
trunk/src/oleaut32/connpt.h
r4837 r8450 1 /* 2 * Copyright 2000 Huw D M Davies for CodeWeavers 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 */ 18 1 19 #ifndef _CONNPT_H 2 20 #define _CONNPT_H -
trunk/src/oleaut32/dbgwrap.cpp
r7919 r8450 3 3 #include <os2sel.h> 4 4 5 #include <os2win.h>6 #include <winreg.h>7 #include <winnt.h>8 #include <wincon.h>9 #include <winthunk.h>10 #include <winnls.h>11 #include <ntddk.h>12 #include <heapstring.h>13 5 #include "oleaut32.h" 14 6 #include "wine/obj_errorinfo.h" -
trunk/src/oleaut32/dispatch.c
r6944 r8450 4 4 * Copyright 2000 Francois Jacques, Macadamian Technologies Inc. 5 5 * 6 * --- 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 7 19 * 8 20 * TODO: Type coercion is implemented in variant.c but not called yet. … … 25 37 #include "wine/obj_oleaut.h" 26 38 27 #include " debugtools.h"39 #include "wine/debug.h" 28 40 29 DEFAULT_DEBUG_CHANNEL(ole);30 DECLARE_DEBUG_CHANNEL(typelib);41 WINE_DEFAULT_DEBUG_CHANNEL(ole); 42 WINE_DECLARE_DEBUG_CHANNEL(typelib); 31 43 32 44 -
trunk/src/oleaut32/makefile
r8446 r8450 1 # $Id: makefile,v 1.3 3 2002-05-16 19:35:14sandervl Exp $1 # $Id: makefile,v 1.34 2002-05-17 10:16:58 sandervl Exp $ 2 2 3 3 # … … 22 22 # 23 23 OBJS = \ 24 $(OBJDIR)\oleaut32.obj \25 24 $(OBJDIR)\oleaut.obj \ 26 $(OBJDIR)\oList.obj \27 $(OBJDIR)\initterm.obj \28 25 $(OBJDIR)\olefont.obj \ 29 26 $(OBJDIR)\variant.obj \ … … 32 29 $(OBJDIR)\olepicture.obj \ 33 30 $(OBJDIR)\asmutil.obj \ 34 #$(OBJDIR)\iPicture.obj \35 #$(OBJDIR)\iPictureNone.obj \36 #$(OBJDIR)\iPictureBmp.obj \37 #$(OBJDIR)\iPictureMeta.obj \38 #$(OBJDIR)\iPictureIcon.obj \39 #$(OBJDIR)\iPictureEmf.obj \40 31 $(OBJDIR)\typelib.obj \ 41 32 $(OBJDIR)\tmarshal.obj \ 42 #$(OBJDIR)\itypelib.obj \43 #$(OBJDIR)\itypecomp.obj \44 #$(OBJDIR)\itypeinfo.obj \45 33 $(OBJDIR)\hash.obj \ 46 34 $(OBJDIR)\safearray.obj \ … … 51 39 $(OBJDIR)\dbgwrap.obj \ 52 40 !endif 41 $(DLLENTRY) \ 53 42 $(OBJDIR)\oleaut32rsrc.obj 54 43 … … 66 55 $(ODIN32_LIB)/guidlib.lib \ 67 56 $(ODIN32_LIB)/$(ODINCRT).lib \ 68 $(ODIN32_LIB)/pmwinx.lib \69 57 OS2386.LIB \ 70 58 $(RTLLIB_O) -
trunk/src/oleaut32/ole2disp.c
r6711 r8450 3 3 * 4 4 * Copyright 1995 Martin von Loewis 5 */ 6 #ifdef __WIN32OS2__ 7 #define HAVE_FLOAT_H 8 #define WINE_LARGE_INTEGER 9 #include "oleaut32.h" 10 #endif 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 */ 20 21 #include "config.h" 22 11 23 #include <string.h> 12 24 25 #include "wine/windef16.h" 26 #include "ole2.h" 27 #include "oleauto.h" 13 28 #include "windef.h" 14 29 #include "winbase.h" 30 #include "winerror.h" 15 31 #include "wingdi.h" 16 32 #include "winuser.h" 17 #include "winerror.h" 18 #include "wine/windef16.h" 19 #include "ole2.h" 33 34 #include "ole2disp.h" 20 35 #include "olectl.h" 21 #include "oleauto.h" 22 #include "heap.h" 23 #include "debugtools.h" 24 25 DEFAULT_DEBUG_CHANNEL(ole); 26 27 #ifndef __WIN32OS2__ 36 37 #include "wine/debug.h" 38 39 WINE_DEFAULT_DEBUG_CHANNEL(ole); 40 28 41 /* This implementation of the BSTR API is 16-bit only. It 29 42 represents BSTR as a 16:16 far pointer, and the strings … … 35 48 static BSTR16 BSTR_AllocBytes(int n) 36 49 { 37 void *ptr = SEGPTR_ALLOC(n);38 return (BSTR16) SEGPTR_GET(ptr);50 void *ptr = HeapAlloc( GetProcessHeap(), 0, n ); 51 return (BSTR16)MapLS(ptr); 39 52 } 40 53 … … 44 57 static void BSTR_Free(BSTR16 in) 45 58 { 46 SEGPTR_FREE( MapSL((SEGPTR)in) ); 59 void *ptr = MapSL( (SEGPTR)in ); 60 UnMapLS( (SEGPTR)in ); 61 HeapFree( GetProcessHeap(), 0, ptr ); 47 62 } 48 63 … … 56 71 57 72 /****************************************************************************** 58 * SysAllocString 16[OLE2DISP.2]73 * SysAllocString [OLE2DISP.2] 59 74 */ 60 75 BSTR16 WINAPI SysAllocString16(LPCOLESTR16 in) … … 65 80 66 81 out = BSTR_AllocBytes(strlen(in)+1); 67 if (!out)return 0;82 if (!out) return 0; 68 83 strcpy(BSTR_GetAddr(out),in); 69 84 return out; 70 85 } 71 #endif72 86 73 87 /****************************************************************************** 74 88 * SysAllocString [OLEAUT32.2] 89 * 90 * MSDN (October 2001) states that this returns a NULL value if the argument 91 * is a zero-length string. This does not appear to be true; certainly it 92 * returns a value under Win98 (Oleaut32.dll Ver 2.40.4515.0) 75 93 */ 76 94 BSTR WINAPI SysAllocString(LPCOLESTR in) … … 82 100 } 83 101 84 #ifndef __WIN32OS2__ 85 /****************************************************************************** 86 * SysReAllocString16 [OLE2DISP.3] 102 /****************************************************************************** 103 * SysReallocString [OLE2DISP.3] 87 104 */ 88 105 INT16 WINAPI SysReAllocString16(LPBSTR16 old,LPCOLESTR16 in) … … 93 110 return 1; 94 111 } 95 #endif96 112 97 113 /****************************************************************************** … … 120 136 } 121 137 122 #ifndef __WIN32OS2__ 123 /****************************************************************************** 124 * SysAllocStringLen16 [OLE2DISP.4] 138 /****************************************************************************** 139 * SysAllocStringLen [OLE2DISP.4] 125 140 */ 126 141 BSTR16 WINAPI SysAllocStringLen16(const char *in, int len) … … 143 158 return out; 144 159 } 145 #endif146 160 147 161 /****************************************************************************** … … 212 226 } 213 227 214 #ifndef __WIN32OS2__ 215 /****************************************************************************** 216 * SysReAllocStringLen16 [OLE2DISP.5] 228 /****************************************************************************** 229 * SysReAllocStringLen [OLE2DISP.5] 217 230 */ 218 231 int WINAPI SysReAllocStringLen16(BSTR16 *old,const char *in,int len) … … 223 236 return 1; 224 237 } 225 #endif226 238 227 239 … … 251 263 } 252 264 253 #ifndef __WIN32OS2__ 254 /****************************************************************************** 255 * SysFreeString16 [OLE2DISP.6] 265 /****************************************************************************** 266 * SysFreeString [OLE2DISP.6] 256 267 */ 257 268 void WINAPI SysFreeString16(BSTR16 in) … … 259 270 BSTR_Free(in); 260 271 } 261 #endif262 272 263 273 /****************************************************************************** … … 281 291 282 292 /* 283 * Free the memory from it 's "real" origin.293 * Free the memory from its "real" origin. 284 294 */ 285 295 HeapFree(GetProcessHeap(), 0, bufferPointer); 286 296 } 287 297 288 #ifndef __WIN32OS2__ 289 /****************************************************************************** 290 * SysStringLen16 [OLE2DISP.7] 298 /****************************************************************************** 299 * SysStringLen [OLE2DISP.7] 291 300 */ 292 301 int WINAPI SysStringLen16(BSTR16 str) … … 294 303 return strlen(BSTR_GetAddr(str)); 295 304 } 296 #endif297 305 298 306 /****************************************************************************** … … 344 352 } 345 353 346 #ifndef __WIN32OS2__ 347 /****************************************************************************** 348 * CreateDispTypeInfo16 [OLE2DISP.31] 354 /****************************************************************************** 355 * CreateDispTypeInfo [OLEAUT32.31] 356 */ 357 HRESULT WINAPI CreateDispTypeInfo( 358 INTERFACEDATA *pidata, 359 LCID lcid, 360 ITypeInfo **pptinfo) 361 { 362 FIXME("(%p,%ld,%p),stub\n",pidata,lcid,pptinfo); 363 return 0; 364 } 365 366 /****************************************************************************** 367 * CreateDispTypeInfo [OLE2DISP.31] 349 368 */ 350 369 HRESULT WINAPI CreateDispTypeInfo16( … … 354 373 { 355 374 FIXME("(%p,%ld,%p),stub\n",pidata,lcid,pptinfo); 356 return 0; 357 } 358 #endif 359 360 /****************************************************************************** 361 * CreateDispTypeInfo [OLE2DISP.31] 362 */ 363 HRESULT WINAPI CreateDispTypeInfo( 364 INTERFACEDATA *pidata, 365 LCID lcid, 366 ITypeInfo **pptinfo) 367 { 368 FIXME("(%p,%ld,%p),stub\n",pidata,lcid,pptinfo); 369 return 0; 370 } 371 372 #ifndef __WIN32OS2__ 373 /****************************************************************************** 374 * CreateStdDispatch16 [OLE2DISP.32] 375 return E_NOTIMPL; 376 } 377 378 /****************************************************************************** 379 * CreateStdDispatch [OLE2DISP.32] 375 380 */ 376 381 HRESULT WINAPI CreateStdDispatch16( … … 384 389 return 0; 385 390 } 386 #endif 387 388 /****************************************************************************** 389 * CreateStdDispatch [OLE2DISP.32] 391 392 /****************************************************************************** 393 * CreateStdDispatch [OLEAUT32.32] 390 394 */ 391 395 HRESULT WINAPI CreateStdDispatch( … … 397 401 FIXME("(%p,%p,%p,%p),stub\n",punkOuter, pvThis, ptinfo, 398 402 ppunkStdDisp); 399 return 0; 400 } 401 402 #ifndef __WIN32OS2__ 403 return E_NOTIMPL; 404 } 405 403 406 /****************************************************************************** 404 407 * RegisterActiveObject [OLE2DISP.35] … … 408 411 ) { 409 412 FIXME("(%p,%s,0x%08lx,%p):stub\n",punk,debugstr_guid(rclsid),dwFlags,pdwRegister); 410 return 0; 411 } 412 #endif 413 return E_NOTIMPL; 414 } 413 415 414 416 /****************************************************************************** … … 504 506 /* 505 507 * Allocate a new buffer to hold the string. 506 * dont't forget to keep an empty spot at the begin ing of the508 * dont't forget to keep an empty spot at the beginning of the 507 509 * buffer for the character count and an extra character at the 508 510 * end for the NULL. -
trunk/src/oleaut32/ole2disp.h
r6504 r8450 1 /* 2 * Copyright 1995 Martin von Loewis 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 */ 18 1 19 #ifndef __WINE_OLEAUT32_OLE2DISP_H 2 20 #define __WINE_OLEAUT32_OLE2DISP_H 3 21 4 22 #include "wtypes.h" 23 #include "wine/windef16.h" 5 24 6 25 BSTR16 WINAPI SysAllocString16(LPCOLESTR16); -
trunk/src/oleaut32/oleaut.c
r7916 r8450 2 2 * OLEAUT32 3 3 * 4 * Copyright 1999, 2000 Marcus Meissner 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 4 19 */ 5 20 #ifdef __WIN32OS2__ … … 7 22 #define WINE_LARGE_INTEGER 8 23 #include "oleaut32.h" 24 9 25 #endif 10 26 … … 24 40 #include "tmarshal.h" 25 41 26 #include " debugtools.h"27 28 DEFAULT_DEBUG_CHANNEL(ole);42 #include "wine/debug.h" 43 44 WINE_DEFAULT_DEBUG_CHANNEL(ole); 29 45 30 46 static WCHAR _delimiter[2] = {'!',0}; /* default delimiter apparently */ -
trunk/src/oleaut32/oleaut32.h
r6944 r8450 1 /* $Id: oleaut32.h,v 1.1 1 2001-10-03 19:21:59 sandervl Exp $ */1 /* $Id: oleaut32.h,v 1.12 2002-05-17 10:16:59 sandervl Exp $ */ 2 2 /* 3 3 * Win32 OLE stubs for OS/2 … … 53 53 #include <unicode.h> 54 54 55 extern int loadNr;56 extern char oleaut32Path[];57 58 void ClosePrivateLogFileTypelib();59 void OpenPrivateLogFileTypelib();60 61 55 #define snprintf wsnprintfA 62 56 #endif -
trunk/src/oleaut32/olefont.c
r7916 r8450 6 6 * 7 7 * Copyright 1999 Francis Beaudet 8 * 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2.1 of the License, or (at your option) any later version. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 8 22 */ 9 23 #ifdef __WIN32OS2__ … … 25 39 #include "ole2.h" 26 40 #include "olectl.h" 27 #include " debugtools.h"41 #include "wine/debug.h" 28 42 #include "connpt.h" /* for CreateConnectionPoint */ 29 43 30 DEFAULT_DEBUG_CHANNEL(ole);44 WINE_DEFAULT_DEBUG_CHANNEL(ole); 31 45 32 46 /*********************************************************************** -
trunk/src/oleaut32/olepicture.c
r7508 r8450 7 7 * Copyright 2001 Marcus Meissner 8 8 * 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2.1 of the License, or (at your option) any later version. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 9 22 * 10 23 * BUGS … … 22 35 * 23 36 */ 24 #ifdef __WIN32OS2__25 #define HAVE_FLOAT_H26 #define WINE_LARGE_INTEGER27 #include "oleaut32.h"28 #endif29 37 30 38 #include "config.h" … … 43 51 #include "wine/obj_connection.h" 44 52 #include "connpt.h" 45 #include " debugtools.h"53 #include "wine/debug.h" 46 54 47 55 #include "wine/wingdi16.h" … … 51 59 /* This is a hack, so jpeglib.h does not redefine INT32 and the like*/ 52 60 #define XMD_H 61 #define UINT16 JPEG_UINT16 53 62 #ifdef HAVE_JPEGLIB_H 54 63 # include <jpeglib.h> 55 64 #endif 65 #undef UINT16 56 66 #endif 57 67 58 DEFAULT_DEBUG_CHANNEL(ole);68 WINE_DEFAULT_DEBUG_CHANNEL(ole); 59 69 60 70 /************************************************************************* … … 153 163 154 164 if (pictDesc) 155 TRACE("(%p) type = %d\n", pictDesc, pictDesc->picType);165 TRACE("(%p) type = %d\n", pictDesc, pictDesc->picType); 156 166 157 167 /* … … 1271 1281 } 1272 1282 1273 #ifdef __WIN32OS2__1274 1275 // ----------------------------------------------------------------------1276 // OleLoadPictureFile1277 // ----------------------------------------------------------------------1278 HRESULT WIN32API OleLoadPictureFile(VARIANT varFileName, LPDISPATCH* lplpdispPicture)1279 {1280 dprintf(("OLEAUT32: OleLoadPictureFile - stub"));1281 return S_OK;1282 }1283 1284 // ----------------------------------------------------------------------1285 // OleSavePictureFile1286 // ----------------------------------------------------------------------1287 HRESULT WIN32API OleSavePictureFile(LPDISPATCH lpdispPicture,1288 BSTR bstrFileName)1289 {1290 dprintf(("OLEAUT32: OleSavePictureFile - stub"));1291 return S_OK;1292 }1293 1294 // ----------------------------------------------------------------------1295 // OleLoadPicturePath1296 // ----------------------------------------------------------------------1297 HRESULT WIN32API OleLoadPicturePath1298 (LPOLESTR szURLorPath,1299 LPUNKNOWN punkCaller,1300 DWORD dwReserved,1301 OLE_COLOR clrReserved,1302 REFIID riid,1303 LPVOID * ppvRet )1304 {1305 dprintf(("OLEAUT32: OleLoadPicturePath - stub"));1306 return S_OK;1307 }1308 #endif -
trunk/src/oleaut32/parsedt.c
r6711 r8450 704 704 if (IS_VALID_UTIME(tm->tm_year, tm->tm_mon, tm->tm_mday)) 705 705 { 706 #ifdef USE_POSIX_TIME 706 /* FIXME: The code below is not correct */ 707 #if 0 /* defined(USE_POSIX_TIME) */ 707 708 tm->tm_year -= 1900; 708 709 tm->tm_mon -= 1; … … 712 713 tm->tm_mon += 1; 713 714 714 #if def HAVE_INT_TIMEZONE715 #if 0 /* defined(HAVE_INT_TIMEZONE) */ 715 716 *tzp = ((tm->tm_isdst > 0) ? (timezone - 3600) : timezone); 716 717 -
trunk/src/oleaut32/parsedt.h
r4837 r8450 31 31 * 32 32 * Copyright (c) 1994, Regents of the University of California 33 *34 * $Id: parsedt.h,v 1.3 2000-12-24 14:39:55 sandervl Exp $35 33 * 36 34 *------------------------------------------------------------------------- -
trunk/src/oleaut32/safearray.c
r7916 r8450 6 6 * 7 7 * Copyright 1999 Sylvain St-Germain 8 */ 8 * 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2.1 of the License, or (at your option) any later version. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 */ 23 #ifdef __WIN32OS2__ 24 #define HAVE_FLOAT_H 25 #define WINE_LARGE_INTEGER 26 #include "oleaut32.h" 27 28 #endif 9 29 10 30 #include <stdio.h> … … 15 35 #include "oleauto.h" 16 36 #include "wine/obj_base.h" 17 #include " debugtools.h"18 19 DEFAULT_DEBUG_CHANNEL(ole);37 #include "wine/debug.h" 38 39 WINE_DEFAULT_DEBUG_CHANNEL(ole); 20 40 21 41 #define SYSDUPSTRING(str) SysAllocStringLen((str), SysStringLen(str)) -
trunk/src/oleaut32/stubs.cpp
r8446 r8450 1 /* $Id: stubs.cpp,v 1.1 4 2002-05-16 19:35:15sandervl Exp $ */1 /* $Id: stubs.cpp,v 1.15 2002-05-17 10:17:00 sandervl Exp $ */ 2 2 /* 3 3 * Win32 COM/OLE stubs for OS/2 … … 704 704 return S_OK; 705 705 } 706 707 #ifdef __WIN32OS2__ 708 709 // ---------------------------------------------------------------------- 710 // OleLoadPictureFile 711 // ---------------------------------------------------------------------- 712 HRESULT WIN32API OleLoadPictureFile(VARIANT varFileName, LPDISPATCH* lplpdispPicture) 713 { 714 dprintf(("OLEAUT32: OleLoadPictureFile - stub")); 715 return S_OK; 716 } 717 718 // ---------------------------------------------------------------------- 719 // OleSavePictureFile 720 // ---------------------------------------------------------------------- 721 HRESULT WIN32API OleSavePictureFile(LPDISPATCH lpdispPicture, 722 BSTR bstrFileName) 723 { 724 dprintf(("OLEAUT32: OleSavePictureFile - stub")); 725 return S_OK; 726 } 727 728 // ---------------------------------------------------------------------- 729 // OleLoadPicturePath 730 // ---------------------------------------------------------------------- 731 HRESULT WIN32API OleLoadPicturePath 732 (LPOLESTR szURLorPath, 733 LPUNKNOWN punkCaller, 734 DWORD dwReserved, 735 OLE_COLOR clrReserved, 736 REFIID riid, 737 LPVOID * ppvRet ) 738 { 739 dprintf(("OLEAUT32: OleLoadPicturePath - stub")); 740 return S_OK; 741 } 742 #endif -
trunk/src/oleaut32/tmarshal.c
r7936 r8450 3 3 * 4 4 * Copyright 2002 Marcus Meissner 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 5 19 */ 6 #ifdef __WIN32OS2__7 #define HAVE_FLOAT_H8 #define WINE_LARGE_INTEGER9 #include "oleaut32.h"10 11 #endif12 20 13 21 #include "config.h" … … 32 40 #include "ole2disp.h" 33 41 #include "typelib.h" 34 #include " debugtools.h"42 #include "wine/debug.h" 35 43 #include "ntddk.h" 36 44 37 45 static const WCHAR riidW[5] = {'r','i','i','d',0}; 38 46 39 DEFAULT_DEBUG_CHANNEL(ole);40 DECLARE_DEBUG_CHANNEL(olerelay);47 WINE_DEFAULT_DEBUG_CHANNEL(ole); 48 WINE_DECLARE_DEBUG_CHANNEL(olerelay); 41 49 42 50 typedef struct _marshal_state { … … 370 378 return S_OK; 371 379 case VT_BSTR: { /* DWORD size, string data */ 372 DWORD *bstr = ((DWORD*)(*arg))-1; 373 374 if (relaydeb) MESSAGE("%s",debugstr_w((LPWSTR)(bstr+1))); 375 return xbuf_add(buf,(LPBYTE)bstr,bstr[0]+4); 380 381 if (*arg) { 382 DWORD *bstr = ((DWORD*)(*arg))-1; 383 384 if (relaydeb) MESSAGE("%s",debugstr_w((LPWSTR)(bstr+1))); 385 return xbuf_add(buf,(LPBYTE)bstr,bstr[0]+4); 386 } else { 387 DWORD xnull = 0; 388 389 return xbuf_add(buf,(LPBYTE)&xnull,sizeof(xnull)); 390 } 376 391 } 377 392 case VT_BOOL: -
trunk/src/oleaut32/tmarshal.h
r7916 r8450 1 /* 2 * Copyright 2002 Marcus Meissner 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 */ 18 1 19 #ifndef TMARSHAL_H 2 20 #define TMARSHAL_H 21 3 22 HRESULT WINAPI 4 23 TypeLibFac_DllGetClassObject(REFCLSID rclsid, REFIID iid,LPVOID *ppv); -
trunk/src/oleaut32/typelib.c
r7934 r8450 6 6 * 2000 Francois Jacques 7 7 * 2001 Huw D M Davies for CodeWeavers 8 * 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2.1 of the License, or (at your option) any later version. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 8 22 * 9 23 * -------------------------------------------------------------------------------------- … … 38 52 * 39 53 */ 40 #ifdef __WIN32OS2__41 #define HAVE_FLOAT_H42 #define WINE_LARGE_INTEGER43 #include "oleaut32.h"44 #endif45 54 46 55 #include "config.h" … … 61 70 #include "ole2disp.h" 62 71 #include "typelib.h" 63 #include " debugtools.h"72 #include "wine/debug.h" 64 73 #include "ntddk.h" 65 74 66 DEFAULT_DEBUG_CHANNEL(ole); 67 DECLARE_DEBUG_CHANNEL(typelib); 68 69 #ifdef __WIN32OS2__ 70 #include <neexe.h> 71 #else 75 WINE_DEFAULT_DEBUG_CHANNEL(ole); 76 WINE_DECLARE_DEBUG_CHANNEL(typelib); 77 72 78 /**************************************************************************** 73 79 * QueryPathOfRegTypeLib [TYPELIB.14] … … 113 119 return S_OK; 114 120 } 115 #endif 116 121 117 122 /**************************************************************************** 118 123 * QueryPathOfRegTypeLib [OLEAUT32.164] … … 133 138 HRESULT hr = E_FAIL; 134 139 135 DWORD dwPathLen = _MAX_PATH;136 140 LCID myLCID = lcid; 137 141 138 142 char szXGUID[80]; 139 143 char szTypeLibKey[100]; 140 #ifdef __WIN32OS2__ 141 char szPath[_MAX_PATH]; 142 #else 143 char szPath[dwPathLen]; 144 #endif 144 char szPath[MAX_PATH]; 145 DWORD dwPathLen = sizeof(szPath); 146 145 147 if ( !HIWORD(guid) ) 146 148 { … … 467 469 ITypeInfo_GetTypeAttr(tinfo, &tattr); 468 470 if (tattr) { 469 TRACE_(typelib)("guid=%s, flags=%04x \n",471 TRACE_(typelib)("guid=%s, flags=%04x (", 470 472 debugstr_guid(&tattr->guid), 471 473 tattr->wTypeFlags); 472 if (tattr->wTypeFlags & TYPEFLAG_FOLEAUTOMATION) { 474 if (TRACE_ON(typelib)) { 475 #define XX(x) if (TYPEFLAG_##x & tattr->wTypeFlags) MESSAGE(#x"|"); 476 XX(FAPPOBJECT); 477 XX(FCANCREATE); 478 XX(FLICENSED); 479 XX(FPREDECLID); 480 XX(FHIDDEN); 481 XX(FCONTROL); 482 XX(FDUAL); 483 XX(FNONEXTENSIBLE); 484 XX(FOLEAUTOMATION); 485 XX(FRESTRICTED); 486 XX(FAGGREGATABLE); 487 XX(FREPLACEABLE); 488 XX(FDISPATCHABLE); 489 XX(FREVERSEBIND); 490 XX(FPROXY); 491 #undef XX 492 MESSAGE("\n"); 493 } 494 /* 495 * FIXME: The 1 is just here until we implement rpcrt4 496 * stub/proxy handling. Until then it helps IShield 497 * v6 to work. 498 */ 499 if (1 || (tattr->wTypeFlags & TYPEFLAG_FOLEAUTOMATION)) 500 { 473 501 /* register interface<->typelib coupling */ 474 502 StringFromGUID2(&tattr->guid, guid, 80); … … 546 574 } 547 575 548 #ifndef __WIN32OS2__549 576 /**************************************************************************** 550 577 * OaBuildVersion (TYPELIB.15) … … 583 610 } 584 611 } 585 #endif586 612 587 613 /* for better debugging info leave the static out for the time being */ -
trunk/src/oleaut32/typelib.h
r7916 r8450 4 4 * 5 5 * Copyright 1999 Rein KLazes 6 * 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 7 20 */ 8 21 #ifndef _WINE_TYPELIB_H -
trunk/src/oleaut32/variant.c
r7916 r8450 3 3 * 4 4 * Copyright 1998 Jean-Claude Cote 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 5 19 * 6 20 * NOTES … … 20 34 * - The parsing does not accept as many formats as the Windows implementation. 21 35 */ 22 #ifdef __WIN32OS2__23 #define HAVE_FLOAT_H24 #define WINE_LARGE_INTEGER25 #include "oleaut32.h"26 27 #endif28 36 29 37 #include "config.h" … … 42 50 #include "oleauto.h" 43 51 #include "heap.h" 44 #include " debugtools.h"52 #include "wine/debug.h" 45 53 #include "winerror.h" 46 54 #include "parsedt.h" 47 55 48 DEFAULT_DEBUG_CHANNEL(ole);56 WINE_DEFAULT_DEBUG_CHANNEL(ole); 49 57 50 58 #define SYSDUPSTRING(str) SysAllocStringLen((str), SysStringLen(str)) … … 1646 1654 ( vt & VT_TYPEMASK ) > VT_MAXVALIDTYPE ) 1647 1655 { 1648 res = E_INVALIDARG;1656 res = DISP_E_BADVARTYPE; 1649 1657 } 1650 1658 … … 1968 1976 } 1969 1977 } 1970 1971 1978 1979 if (res == S_OK) V_VT(pvargDest) = V_VT(pvargSrc) & VT_TYPEMASK; 1972 1980 } 1973 1981 }
Note:
See TracChangeset
for help on using the changeset viewer.