Changeset 795 for trunk/src/shell32/new/shellole.cpp
- Timestamp:
- Sep 2, 1999, 7:25:19 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/new/shellole.cpp
r791 r795 66 66 WINE_StringFromCLSID(refiid,xiid); 67 67 if (unknownouter) 68 WINE_StringFromCLSID( unknownouter,xuout);68 WINE_StringFromCLSID((const CLSID*)unknownouter,xuout); 69 69 70 70 TRACE("(%p,\n\tCLSID:\t%s\n\tUOUT:\t%s\n\tIID:\t%s,%p)\n", … … 140 140 { 141 141 if (VERSION_OsIsUnicode()) 142 return SHCLSIDFromStringW ( clsid, id);143 return SHCLSIDFromStringA ( clsid, id);142 return SHCLSIDFromStringW ((LPWSTR)clsid, id); 143 return SHCLSIDFromStringA ((LPSTR)clsid, id); 144 144 } 145 145 … … 178 178 if(lpclf) 179 179 { 180 hres = IClassFactory_CreateInstance(lpclf,NULL,(REFIID)&IID_IShellFolder, ( void*)&pdesktopfolder);180 hres = IClassFactory_CreateInstance(lpclf,NULL,(REFIID)&IID_IShellFolder, (LPVOID*)&pdesktopfolder); 181 181 IClassFactory_Release(lpclf); 182 182 } … … 206 206 } IClassFactoryImpl; 207 207 208 static ICOM_VTABLE(IClassFactory) clfvt; 209 210 /************************************************************************** 211 * IClassFactory_Constructor 212 */ 213 214 LPCLASSFACTORY IClassFactory_Constructor(REFCLSID rclsid) 215 { 216 IClassFactoryImpl* lpclf; 217 218 lpclf= (IClassFactoryImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IClassFactoryImpl)); 219 lpclf->ref = 1; 220 lpclf->lpvtbl = &clfvt; 221 lpclf->rclsid = (CLSID*)rclsid; 222 223 TRACE("(%p)->()\n",lpclf); 224 shell32_ObjCount++; 225 return (LPCLASSFACTORY)lpclf; 226 } 208 //static ICOM_VTABLE(IClassFactory) clfvt; 209 227 210 /************************************************************************** 228 211 * IClassFactory_QueryInterface … … 348 331 349 332 /************************************************************************** 333 * IClassFactory_Constructor 334 */ 335 336 LPCLASSFACTORY IClassFactory_Constructor(REFCLSID rclsid) 337 { 338 IClassFactoryImpl* lpclf; 339 340 lpclf= (IClassFactoryImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IClassFactoryImpl)); 341 lpclf->ref = 1; 342 lpclf->lpvtbl = &clfvt; 343 lpclf->rclsid = (CLSID*)rclsid; 344 345 TRACE("(%p)->()\n",lpclf); 346 shell32_ObjCount++; 347 return (LPCLASSFACTORY)lpclf; 348 } 349 350 351 /************************************************************************** 350 352 * Default ClassFactory Implementation 351 353 * … … 369 371 } IDefClFImpl; 370 372 371 static ICOM_VTABLE(IClassFactory) dclfvt; 372 373 /************************************************************************** 374 * IDefClF_fnConstructor 375 */ 376 377 IClassFactory * IDefClF_fnConstructor(LPFNCREATEINSTANCE lpfnCI, UINT * pcRefDll, REFIID riidInst) 378 { 379 IDefClFImpl* lpclf; 380 char xriidInst[50]; 381 382 WINE_StringFromCLSID((LPCLSID)riidInst,xriidInst); 383 384 lpclf = (IDefClFImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IDefClFImpl)); 385 lpclf->ref = 1; 386 lpclf->lpvtbl = &dclfvt; 387 lpclf->lpfnCI = lpfnCI; 388 lpclf->pcRefDll = pcRefDll; 389 390 if (pcRefDll) 391 (*pcRefDll)++; 392 393 lpclf->riidInst = riidInst; 394 395 TRACE("(%p)\n\tIID:\t%s\n",lpclf, xriidInst); 396 shell32_ObjCount++; 397 return (LPCLASSFACTORY)lpclf; 398 } 373 //static ICOM_VTABLE(IClassFactory) dclfvt; 374 399 375 /************************************************************************** 400 376 * IDefClF_fnQueryInterface … … 505 481 }; 506 482 483 /************************************************************************** 484 * IDefClF_fnConstructor 485 */ 486 487 IClassFactory * IDefClF_fnConstructor(LPFNCREATEINSTANCE lpfnCI, UINT * pcRefDll, REFIID riidInst) 488 { 489 IDefClFImpl* lpclf; 490 char xriidInst[50]; 491 492 WINE_StringFromCLSID((LPCLSID)riidInst,xriidInst); 493 494 lpclf = (IDefClFImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IDefClFImpl)); 495 lpclf->ref = 1; 496 lpclf->lpvtbl = &dclfvt; 497 lpclf->lpfnCI = lpfnCI; 498 lpclf->pcRefDll = pcRefDll; 499 500 if (pcRefDll) 501 (*pcRefDll)++; 502 503 lpclf->riidInst = riidInst; 504 505 TRACE("(%p)\n\tIID:\t%s\n",lpclf, xriidInst); 506 shell32_ObjCount++; 507 return (LPCLASSFACTORY)lpclf; 508 } 509 510 507 511 /****************************************************************************** 508 512 * SHCreateDefClassObject [SHELL32.70]
Note:
See TracChangeset
for help on using the changeset viewer.