Changeset 6711 for trunk/src/oleaut32/olepicture.c
- Timestamp:
- Sep 15, 2001, 11:32:00 AM (24 years ago)
- File:
-
- 1 edited
-
trunk/src/oleaut32/olepicture.c (modified) (50 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/oleaut32/olepicture.c
r6689 r6711 50 50 #ifdef HAVE_LIBJPEG 51 51 /* This is a hack, so jpeglib.h does not redefine INT32 and the like*/ 52 #define XMD_H 52 #define XMD_H 53 53 #ifdef HAVE_JPEGLIB_H 54 54 # include <jpeglib.h> … … 90 90 /* We own the object and must destroy it ourselves */ 91 91 BOOL fOwn; 92 92 93 93 /* Picture description */ 94 94 PICTDESC desc; … … 105 105 106 106 BOOL keepOrigFormat; 107 HDC hDCCur;107 HDC hDCCur; 108 108 } OLEPictureImpl; 109 109 … … 174 174 if (newObject==0) 175 175 return newObject; 176 176 177 177 /* 178 178 * Initialize the virtual function table. … … 186 186 187 187 /* 188 * Start with one reference count. The caller of this function 188 * Start with one reference count. The caller of this function 189 189 * must release the interface pointer when it is done. 190 190 */ 191 newObject->ref = 1;192 newObject->hDCCur = 0;193 194 newObject->fOwn = fOwn;191 newObject->ref = 1; 192 newObject->hDCCur = 0; 193 194 newObject->fOwn = fOwn; 195 195 196 196 /* dunno about original value */ … … 199 199 if (pictDesc) { 200 200 if(pictDesc->cbSizeofstruct != sizeof(PICTDESC)) { 201 FIXME("struct size = %d\n", pictDesc->cbSizeofstruct);201 FIXME("struct size = %d\n", pictDesc->cbSizeofstruct); 202 202 } 203 203 memcpy(&newObject->desc, pictDesc, sizeof(PICTDESC)); … … 206 206 switch(pictDesc->picType) { 207 207 case PICTYPE_BITMAP: 208 OLEPictureImpl_SetBitmap(newObject);209 break;208 OLEPictureImpl_SetBitmap(newObject); 209 break; 210 210 211 211 case PICTYPE_METAFILE: 212 TRACE("metafile handle %08x\n", pictDesc->u.wmf.hmeta);213 newObject->himetricWidth = pictDesc->u.wmf.xExt;214 newObject->himetricHeight = pictDesc->u.wmf.yExt;215 break;212 TRACE("metafile handle %08x\n", pictDesc->u.wmf.hmeta); 213 newObject->himetricWidth = pictDesc->u.wmf.xExt; 214 newObject->himetricHeight = pictDesc->u.wmf.yExt; 215 break; 216 216 217 217 case PICTYPE_ICON: 218 218 case PICTYPE_ENHMETAFILE: 219 219 default: 220 FIXME("Unsupported type %d\n", pictDesc->picType);221 newObject->himetricWidth = newObject->himetricHeight = 0;222 break;220 FIXME("Unsupported type %d\n", pictDesc->picType); 221 newObject->himetricWidth = newObject->himetricHeight = 0; 222 break; 223 223 } 224 224 } else { 225 225 newObject->desc.picType = PICTYPE_UNINITIALIZED; 226 226 } 227 227 228 228 TRACE("returning %p\n", newObject); 229 229 return newObject; … … 237 237 * this object. */ 238 238 static void OLEPictureImpl_Destroy(OLEPictureImpl* Obj) 239 { 239 { 240 240 TRACE("(%p)\n", Obj); 241 241 … … 282 282 if ( (This==0) || (ppvObject==0) ) 283 283 return E_INVALIDARG; 284 284 285 285 /* 286 286 * Initialize the return parameter. 287 287 */ 288 288 *ppvObject = 0; 289 289 290 290 /* 291 291 * Compare the riid with the interface IDs implemented by this object. 292 292 */ 293 if (memcmp(&IID_IUnknown, riid, sizeof(IID_IUnknown)) == 0) 293 if (memcmp(&IID_IUnknown, riid, sizeof(IID_IUnknown)) == 0) 294 294 { 295 295 *ppvObject = (IPicture*)This; 296 296 } 297 else if (memcmp(&IID_IPicture, riid, sizeof(IID_IPicture)) == 0) 297 else if (memcmp(&IID_IPicture, riid, sizeof(IID_IPicture)) == 0) 298 298 { 299 299 *ppvObject = (IPicture*)This; 300 300 } 301 else if (memcmp(&IID_IDispatch, riid, sizeof(IID_IDispatch)) == 0) 301 else if (memcmp(&IID_IDispatch, riid, sizeof(IID_IDispatch)) == 0) 302 302 { 303 303 *ppvObject = (IDispatch*)&(This->lpvtbl2); 304 304 } 305 else if (memcmp(&IID_IPictureDisp, riid, sizeof(IID_IPictureDisp)) == 0) 305 else if (memcmp(&IID_IPictureDisp, riid, sizeof(IID_IPictureDisp)) == 0) 306 306 { 307 307 *ppvObject = (IDispatch*)&(This->lpvtbl2); 308 308 } 309 else if (memcmp(&IID_IPersistStream, riid, sizeof(IID_IPersistStream)) == 0) 309 else if (memcmp(&IID_IPersistStream, riid, sizeof(IID_IPersistStream)) == 0) 310 310 { 311 311 *ppvObject = (IPersistStream*)&(This->lpvtbl3); 312 312 } 313 else if (memcmp(&IID_IConnectionPointContainer, riid, sizeof(IID_IConnectionPointContainer)) == 0) 313 else if (memcmp(&IID_IConnectionPointContainer, riid, sizeof(IID_IConnectionPointContainer)) == 0) 314 314 { 315 315 *ppvObject = (IConnectionPointContainer*)&(This->lpvtbl4); … … 323 323 return E_NOINTERFACE; 324 324 } 325 325 326 326 /* 327 327 * Query Interface always increases the reference count by one when it is … … 362 362 * See Windows documentation for more details on IUnknown methods. 363 363 */ 364 static ULONG WINAPI OLEPictureImpl_AddRef( 364 static ULONG WINAPI OLEPictureImpl_AddRef( 365 365 IPicture* iface) 366 366 { … … 371 371 return This->ref; 372 372 } 373 373 374 374 /************************************************************************ 375 375 * OLEPictureImpl_Release (IUnknown) … … 377 377 * See Windows documentation for more details on IUnknown methods. 378 378 */ 379 static ULONG WINAPI OLEPictureImpl_Release( 379 static ULONG WINAPI OLEPictureImpl_Release( 380 380 IPicture* iface) 381 381 { … … 397 397 return 0; 398 398 } 399 399 400 400 return This->ref; 401 401 } … … 404 404 /************************************************************************ 405 405 * OLEPictureImpl_get_Handle 406 */ 406 */ 407 407 static HRESULT WINAPI OLEPictureImpl_get_Handle(IPicture *iface, 408 OLE_HANDLE *phandle)408 OLE_HANDLE *phandle) 409 409 { 410 410 ICOM_THIS(OLEPictureImpl, iface); … … 433 433 /************************************************************************ 434 434 * OLEPictureImpl_get_hPal 435 */ 435 */ 436 436 static HRESULT WINAPI OLEPictureImpl_get_hPal(IPicture *iface, 437 OLE_HANDLE *phandle)437 OLE_HANDLE *phandle) 438 438 { 439 439 ICOM_THIS(OLEPictureImpl, iface); … … 444 444 /************************************************************************ 445 445 * OLEPictureImpl_get_Type 446 */ 446 */ 447 447 static HRESULT WINAPI OLEPictureImpl_get_Type(IPicture *iface, 448 short *ptype)448 short *ptype) 449 449 { 450 450 ICOM_THIS(OLEPictureImpl, iface); … … 456 456 /************************************************************************ 457 457 * OLEPictureImpl_get_Width 458 */ 458 */ 459 459 static HRESULT WINAPI OLEPictureImpl_get_Width(IPicture *iface, 460 OLE_XSIZE_HIMETRIC *pwidth)460 OLE_XSIZE_HIMETRIC *pwidth) 461 461 { 462 462 ICOM_THIS(OLEPictureImpl, iface); … … 468 468 /************************************************************************ 469 469 * OLEPictureImpl_get_Height 470 */ 470 */ 471 471 static HRESULT WINAPI OLEPictureImpl_get_Height(IPicture *iface, 472 OLE_YSIZE_HIMETRIC *pheight)472 OLE_YSIZE_HIMETRIC *pheight) 473 473 { 474 474 ICOM_THIS(OLEPictureImpl, iface); … … 480 480 /************************************************************************ 481 481 * OLEPictureImpl_Render 482 */ 482 */ 483 483 static HRESULT WINAPI OLEPictureImpl_Render(IPicture *iface, HDC hdc, 484 long x, long y, long cx, long cy,485 OLE_XPOS_HIMETRIC xSrc,486 OLE_YPOS_HIMETRIC ySrc,487 OLE_XSIZE_HIMETRIC cxSrc,488 OLE_YSIZE_HIMETRIC cySrc,489 LPCRECT prcWBounds)484 long x, long y, long cx, long cy, 485 OLE_XPOS_HIMETRIC xSrc, 486 OLE_YPOS_HIMETRIC ySrc, 487 OLE_XSIZE_HIMETRIC cxSrc, 488 OLE_YSIZE_HIMETRIC cySrc, 489 LPCRECT prcWBounds) 490 490 { 491 491 ICOM_THIS(OLEPictureImpl, iface); 492 492 TRACE("(%p)->(%08x, (%ld,%ld), (%ld,%ld) <- (%ld,%ld), (%ld,%ld), %p)\n", 493 This, hdc, x, y, cx, cy, xSrc, ySrc, cxSrc, cySrc, prcWBounds);493 This, hdc, x, y, cx, cy, xSrc, ySrc, cxSrc, cySrc, prcWBounds); 494 494 if(prcWBounds) 495 495 TRACE("prcWBounds (%d,%d) - (%d,%d)\n", prcWBounds->left, prcWBounds->top, 496 prcWBounds->right, prcWBounds->bottom);496 prcWBounds->right, prcWBounds->bottom); 497 497 498 498 /* … … 542 542 /************************************************************************ 543 543 * OLEPictureImpl_set_hPal 544 */ 544 */ 545 545 static HRESULT WINAPI OLEPictureImpl_set_hPal(IPicture *iface, 546 OLE_HANDLE hpal)546 OLE_HANDLE hpal) 547 547 { 548 548 ICOM_THIS(OLEPictureImpl, iface); … … 554 554 /************************************************************************ 555 555 * OLEPictureImpl_get_CurDC 556 */ 556 */ 557 557 static HRESULT WINAPI OLEPictureImpl_get_CurDC(IPicture *iface, 558 HDC *phdc)558 HDC *phdc) 559 559 { 560 560 ICOM_THIS(OLEPictureImpl, iface); … … 566 566 /************************************************************************ 567 567 * OLEPictureImpl_SelectPicture 568 */ 568 */ 569 569 static HRESULT WINAPI OLEPictureImpl_SelectPicture(IPicture *iface, 570 HDC hdcIn,571 HDC *phdcOut,572 OLE_HANDLE *phbmpOut)570 HDC hdcIn, 571 HDC *phdcOut, 572 OLE_HANDLE *phbmpOut) 573 573 { 574 574 ICOM_THIS(OLEPictureImpl, iface); … … 578 578 579 579 if (phdcOut) 580 *phdcOut = This->hDCCur;580 *phdcOut = This->hDCCur; 581 581 This->hDCCur = hdcIn; 582 582 if (phbmpOut) 583 *phbmpOut = This->desc.u.bmp.hbitmap;583 *phbmpOut = This->desc.u.bmp.hbitmap; 584 584 return S_OK; 585 585 } else { … … 591 591 /************************************************************************ 592 592 * OLEPictureImpl_get_KeepOriginalFormat 593 */ 593 */ 594 594 static HRESULT WINAPI OLEPictureImpl_get_KeepOriginalFormat(IPicture *iface, 595 BOOL *pfKeep)595 BOOL *pfKeep) 596 596 { 597 597 ICOM_THIS(OLEPictureImpl, iface); … … 605 605 /************************************************************************ 606 606 * OLEPictureImpl_put_KeepOriginalFormat 607 */ 607 */ 608 608 static HRESULT WINAPI OLEPictureImpl_put_KeepOriginalFormat(IPicture *iface, 609 BOOL keep)609 BOOL keep) 610 610 { 611 611 ICOM_THIS(OLEPictureImpl, iface); … … 618 618 /************************************************************************ 619 619 * OLEPictureImpl_PictureChanged 620 */ 620 */ 621 621 static HRESULT WINAPI OLEPictureImpl_PictureChanged(IPicture *iface) 622 622 { … … 629 629 /************************************************************************ 630 630 * OLEPictureImpl_SaveAsFile 631 */ 631 */ 632 632 static HRESULT WINAPI OLEPictureImpl_SaveAsFile(IPicture *iface, 633 IStream *pstream,634 BOOL SaveMemCopy,635 LONG *pcbSize)633 IStream *pstream, 634 BOOL SaveMemCopy, 635 LONG *pcbSize) 636 636 { 637 637 ICOM_THIS(OLEPictureImpl, iface); … … 642 642 /************************************************************************ 643 643 * OLEPictureImpl_get_Attributes 644 */ 644 */ 645 645 static HRESULT WINAPI OLEPictureImpl_get_Attributes(IPicture *iface, 646 DWORD *pdwAttr)646 DWORD *pdwAttr) 647 647 { 648 648 ICOM_THIS(OLEPictureImpl, iface); … … 650 650 *pdwAttr = 0; 651 651 switch (This->desc.picType) { 652 case PICTYPE_BITMAP: break;/* not 'truely' scalable, see MSDN. */652 case PICTYPE_BITMAP: break; /* not 'truely' scalable, see MSDN. */ 653 653 case PICTYPE_ICON: *pdwAttr = PICTURE_TRANSPARENT;break; 654 654 case PICTYPE_METAFILE: *pdwAttr = PICTURE_TRANSPARENT|PICTURE_SCALABLE;break; … … 706 706 ICOM_THIS_From_IConnectionPointContainer(OLEPictureImpl, iface); 707 707 TRACE("(%p,%s,%p)\n",This,debugstr_guid(riid),ppCP); 708 if (!ppCP) 708 if (!ppCP) 709 709 return E_POINTER; 710 710 *ppCP = NULL; … … 805 805 * Loads the binary data from the IStream. Starts at current position. 806 806 * There appears to be an 2 DWORD header: 807 * DWORD magic;808 * DWORD len;807 * DWORD magic; 808 * DWORD len; 809 809 * 810 810 * Currently implemented: BITMAP, ICON, JPEG. 811 811 */ 812 812 static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) { 813 HRESULT hr = E_FAIL;814 ULONG xread;815 BYTE *xbuf;816 DWORD header[2];817 WORD magic;813 HRESULT hr = E_FAIL; 814 ULONG xread; 815 BYTE *xbuf; 816 DWORD header[2]; 817 WORD magic; 818 818 ICOM_THIS_From_IPersistStream(OLEPictureImpl, iface); 819 819 … … 828 828 xbuf = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,header[1]); 829 829 while (xread < header[1]) { 830 ULONG nread; 830 ULONG nread; 831 831 hr = IStream_Read(pStm,xbuf+xread,header[1]-xread,&nread); 832 832 xread+=nread; … … 841 841 case 0xd8ff: { /* JPEG */ 842 842 #ifdef HAVE_LIBJPEG 843 struct jpeg_decompress_struct jd;844 struct jpeg_error_mgr jerr;845 int ret;846 JDIMENSION x;847 JSAMPROW samprow;848 BITMAPINFOHEADER bmi;849 LPBYTE bits;850 HDC hdcref;851 struct jpeg_source_mgr xjsm;843 struct jpeg_decompress_struct jd; 844 struct jpeg_error_mgr jerr; 845 int ret; 846 JDIMENSION x; 847 JSAMPROW samprow; 848 BITMAPINFOHEADER bmi; 849 LPBYTE bits; 850 HDC hdcref; 851 struct jpeg_source_mgr xjsm; 852 852 853 853 /* This is basically so we can use in-memory data for jpeg decompression. 854 854 * We need to have all the functions. 855 855 */ 856 xjsm.next_input_byte = xbuf;857 xjsm.bytes_in_buffer = xread;858 xjsm.init_source = _jpeg_init_source;859 xjsm.fill_input_buffer = _jpeg_fill_input_buffer;860 xjsm.skip_input_data = _jpeg_skip_input_data;861 xjsm.resync_to_restart = _jpeg_resync_to_restart;862 xjsm.term_source = _jpeg_term_source;856 xjsm.next_input_byte = xbuf; 857 xjsm.bytes_in_buffer = xread; 858 xjsm.init_source = _jpeg_init_source; 859 xjsm.fill_input_buffer = _jpeg_fill_input_buffer; 860 xjsm.skip_input_data = _jpeg_skip_input_data; 861 xjsm.resync_to_restart = _jpeg_resync_to_restart; 862 xjsm.term_source = _jpeg_term_source; 863 863 864 864 jd.err = jpeg_std_error(&jerr); … … 868 868 jpeg_start_decompress(&jd); 869 869 if (ret != JPEG_HEADER_OK) { 870 ERR("Jpeg image in stream has bad format, read header returned %d.\n",ret);871 HeapFree(GetProcessHeap(),0,xbuf);872 return E_FAIL;870 ERR("Jpeg image in stream has bad format, read header returned %d.\n",ret); 871 HeapFree(GetProcessHeap(),0,xbuf); 872 return E_FAIL; 873 873 } 874 874 bits = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,(jd.output_height+1)*jd.output_width*jd.output_components); … … 877 877 x = jpeg_read_scanlines(&jd,&samprow,1); 878 878 if (x != 1) { 879 FIXME("failed to read current scanline?\n");880 break;879 FIXME("failed to read current scanline?\n"); 880 break; 881 881 } 882 882 memcpy( bits+jd.output_scanline*jd.output_width*jd.output_components, 883 samprow,884 jd.output_width*jd.output_components883 samprow, 884 jd.output_width*jd.output_components 885 885 ); 886 886 } 887 bmi.biSize = sizeof(bmi);888 bmi.biWidth = jd.output_width;889 bmi.biHeight = -jd.output_height;890 bmi.biPlanes = 1;891 bmi.biBitCount = jd.output_components<<3;892 bmi.biCompression = BI_RGB;893 bmi.biSizeImage = jd.output_height*jd.output_width*jd.output_components;894 bmi.biXPelsPerMeter = 0;895 bmi.biYPelsPerMeter = 0;896 bmi.biClrUsed = 0;897 bmi.biClrImportant = 0;887 bmi.biSize = sizeof(bmi); 888 bmi.biWidth = jd.output_width; 889 bmi.biHeight = -jd.output_height; 890 bmi.biPlanes = 1; 891 bmi.biBitCount = jd.output_components<<3; 892 bmi.biCompression = BI_RGB; 893 bmi.biSizeImage = jd.output_height*jd.output_width*jd.output_components; 894 bmi.biXPelsPerMeter = 0; 895 bmi.biYPelsPerMeter = 0; 896 bmi.biClrUsed = 0; 897 bmi.biClrImportant = 0; 898 898 899 899 HeapFree(GetProcessHeap(),0,samprow); … … 902 902 hdcref = GetDC(0); 903 903 This->desc.u.bmp.hbitmap=CreateDIBitmap( 904 hdcref,905 &bmi,906 CBM_INIT,907 bits,908 (BITMAPINFO*)&bmi,909 DIB_RGB_COLORS904 hdcref, 905 &bmi, 906 CBM_INIT, 907 bits, 908 (BITMAPINFO*)&bmi, 909 DIB_RGB_COLORS 910 910 ); 911 911 DeleteDC(hdcref); … … 921 921 } 922 922 case 0x4d42: { /* Bitmap */ 923 BITMAPFILEHEADER *bfh = (BITMAPFILEHEADER*)xbuf;924 BITMAPINFO *bi = (BITMAPINFO*)(bfh+1);925 HDC hdcref;923 BITMAPFILEHEADER *bfh = (BITMAPFILEHEADER*)xbuf; 924 BITMAPINFO *bi = (BITMAPINFO*)(bfh+1); 925 HDC hdcref; 926 926 927 927 /* Does not matter whether this is a coreheader or not, we only use … … 930 930 hdcref = GetDC(0); 931 931 This->desc.u.bmp.hbitmap = CreateDIBitmap( 932 hdcref,933 &(bi->bmiHeader),934 CBM_INIT,935 xbuf+bfh->bfOffBits,936 bi,937 (bi->bmiHeader.biBitCount<=8)?DIB_PAL_COLORS:DIB_RGB_COLORS932 hdcref, 933 &(bi->bmiHeader), 934 CBM_INIT, 935 xbuf+bfh->bfOffBits, 936 bi, 937 (bi->bmiHeader.biBitCount<=8)?DIB_PAL_COLORS:DIB_RGB_COLORS 938 938 ); 939 939 DeleteDC(hdcref); … … 945 945 case 0x0000: { /* ICON , first word is dwReserved */ 946 946 HICON hicon; 947 CURSORICONFILEDIR *cifd = (CURSORICONFILEDIR*)xbuf;948 int i;947 CURSORICONFILEDIR *cifd = (CURSORICONFILEDIR*)xbuf; 948 int i; 949 949 950 950 /* … … 954 954 955 955 for (i=0;i<cifd->idCount;i++) { 956 FIXME("[%d] width %d\n",i,cifd->idEntries[i].bWidth);957 FIXME("[%d] height %d\n",i,cifd->idEntries[i].bHeight);958 FIXME("[%d] bColorCount %d\n",i,cifd->idEntries[i].bColorCount);959 FIXME("[%d] bReserved %d\n",i,cifd->idEntries[i].bReserved);960 FIXME("[%d] xHotspot %d\n",i,cifd->idEntries[i].xHotspot);961 FIXME("[%d] yHotspot %d\n",i,cifd->idEntries[i].yHotspot);962 FIXME("[%d] dwDIBSize %d\n",i,cifd->idEntries[i].dwDIBSize);963 FIXME("[%d] dwDIBOffset %d\n",i,cifd->idEntries[i].dwDIBOffset);956 FIXME("[%d] width %d\n",i,cifd->idEntries[i].bWidth); 957 FIXME("[%d] height %d\n",i,cifd->idEntries[i].bHeight); 958 FIXME("[%d] bColorCount %d\n",i,cifd->idEntries[i].bColorCount); 959 FIXME("[%d] bReserved %d\n",i,cifd->idEntries[i].bReserved); 960 FIXME("[%d] xHotspot %d\n",i,cifd->idEntries[i].xHotspot); 961 FIXME("[%d] yHotspot %d\n",i,cifd->idEntries[i].yHotspot); 962 FIXME("[%d] dwDIBSize %d\n",i,cifd->idEntries[i].dwDIBSize); 963 FIXME("[%d] dwDIBOffset %d\n",i,cifd->idEntries[i].dwDIBOffset); 964 964 } 965 965 */ … … 969 969 */ 970 970 if (cifd->idCount!=1) { 971 for (i=0;i<cifd->idCount;i++) { 972 if (cifd->idEntries[i].bWidth == 32) 973 break; 971 for (i=0;i<cifd->idCount;i++) { 972 if (cifd->idEntries[i].bWidth == 32) 973 break; 974 } 975 if (i==cifd->idCount) i=0; 974 976 } 975 if (i==cifd->idCount) i=0;976 }977 977 978 978 hicon = CreateIconFromResourceEx( 979 xbuf+cifd->idEntries[i].dwDIBOffset,980 cifd->idEntries[i].dwDIBSize,981 TRUE, /* is icon */982 0x00030000,983 cifd->idEntries[i].bWidth,984 cifd->idEntries[i].bHeight,985 0979 xbuf+cifd->idEntries[i].dwDIBOffset, 980 cifd->idEntries[i].dwDIBSize, 981 TRUE, /* is icon */ 982 0x00030000, 983 cifd->idEntries[i].bWidth, 984 cifd->idEntries[i].bHeight, 985 0 986 986 ); 987 987 if (!hicon) { 988 FIXME("CreateIcon failed.\n");989 hr = E_FAIL;988 FIXME("CreateIcon failed.\n"); 989 hr = E_FAIL; 990 990 } else { 991 This->desc.picType = PICTYPE_ICON;992 This->desc.u.icon.hicon = hicon;993 hr = S_OK;991 This->desc.picType = PICTYPE_ICON; 992 This->desc.u.icon.hicon = hicon; 993 hr = S_OK; 994 994 } 995 995 break; … … 1074 1074 */ 1075 1075 static HRESULT WINAPI OLEPictureImpl_GetTypeInfoCount( 1076 IDispatch* iface, 1076 IDispatch* iface, 1077 1077 unsigned int* pctinfo) 1078 1078 { … … 1088 1088 */ 1089 1089 static HRESULT WINAPI OLEPictureImpl_GetTypeInfo( 1090 IDispatch* iface, 1090 IDispatch* iface, 1091 1091 UINT iTInfo, 1092 LCID lcid, 1092 LCID lcid, 1093 1093 ITypeInfo** ppTInfo) 1094 1094 { … … 1105 1105 static HRESULT WINAPI OLEPictureImpl_GetIDsOfNames( 1106 1106 IDispatch* iface, 1107 REFIID riid, 1108 LPOLESTR* rgszNames, 1109 UINT cNames, 1107 REFIID riid, 1108 LPOLESTR* rgszNames, 1109 UINT cNames, 1110 1110 LCID lcid, 1111 1111 DISPID* rgDispId) … … 1123 1123 static HRESULT WINAPI OLEPictureImpl_Invoke( 1124 1124 IDispatch* iface, 1125 DISPID dispIdMember, 1126 REFIID riid, 1127 LCID lcid, 1125 DISPID dispIdMember, 1126 REFIID riid, 1127 LCID lcid, 1128 1128 WORD wFlags, 1129 1129 DISPPARAMS* pDispParams, 1130 VARIANT* pVarResult, 1130 VARIANT* pVarResult, 1131 1131 EXCEPINFO* pExepInfo, 1132 1132 UINT* puArgErr) … … 1202 1202 */ 1203 1203 HRESULT WINAPI OleCreatePictureIndirect(LPPICTDESC lpPictDesc, REFIID riid, 1204 BOOL fOwn, LPVOID *ppvObj )1204 BOOL fOwn, LPVOID *ppvObj ) 1205 1205 { 1206 1206 OLEPictureImpl* newPict = NULL; … … 1244 1244 */ 1245 1245 HRESULT WINAPI OleLoadPicture( LPSTREAM lpstream, LONG lSize, BOOL fRunmode, 1246 REFIID riid, LPVOID *ppvObj )1246 REFIID riid, LPVOID *ppvObj ) 1247 1247 { 1248 1248 LPPERSISTSTREAM ps; 1249 IPicture *newpic;1249 IPicture *newpic; 1250 1250 HRESULT hr; 1251 1251 1252 1252 TRACE("(%p,%ld,%d,%s,%p), partially implemented.\n", 1253 lpstream, lSize, fRunmode, debugstr_guid(riid), ppvObj);1253 lpstream, lSize, fRunmode, debugstr_guid(riid), ppvObj); 1254 1254 1255 1255 hr = OleCreatePictureIndirect(NULL,riid,!fRunmode,(LPVOID*)&newpic); … … 1276 1276 */ 1277 1277 HRESULT WINAPI OleLoadPictureEx( LPSTREAM lpstream, LONG lSize, BOOL fRunmode, 1278 REFIID reed, DWORD xsiz, DWORD ysiz, DWORD flags, LPVOID *ppvObj )1278 REFIID reed, DWORD xsiz, DWORD ysiz, DWORD flags, LPVOID *ppvObj ) 1279 1279 { 1280 1280 FIXME("(%p,%ld,%d,%p,%lx,%lx,%lx,%p), not implemented\n", 1281 lpstream, lSize, fRunmode, reed, xsiz, ysiz, flags, ppvObj);1281 lpstream, lSize, fRunmode, reed, xsiz, ysiz, flags, ppvObj); 1282 1282 return S_OK; 1283 1283 } 1284 1284 1285 1285 #ifdef __WIN32OS2__ 1286 1286 … … 1308 1308 // ---------------------------------------------------------------------- 1309 1309 HRESULT WIN32API OleLoadPicturePath 1310 (LPOLESTR szURLorPath,1311 LPUNKNOWN punkCaller,1312 DWORD dwReserved,1313 OLE_COLOR clrReserved,1314 REFIID riid,1315 LPVOID * ppvRet )1310 (LPOLESTR szURLorPath, 1311 LPUNKNOWN punkCaller, 1312 DWORD dwReserved, 1313 OLE_COLOR clrReserved, 1314 REFIID riid, 1315 LPVOID * ppvRet ) 1316 1316 { 1317 1317 dprintf(("OLEAUT32: OleLoadPicturePath - stub"));
Note:
See TracChangeset
for help on using the changeset viewer.
