- Timestamp:
- Oct 7, 1999, 3:57:31 PM (26 years ago)
- Location:
- trunk/src/shell32/new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/new/folders.cpp
r791 r1167 1 /* $Id: folders.cpp,v 1.2 1999-10-07 13:57:30 phaller Exp $ */ 2 3 /* 4 * Win32 SHELL32 for OS/2 5 * 6 * Copyright 1999 Patrick Haller (haller@zebra.fh-weingarten.de) 7 * Project Odin Software License can be found in LICENSE.TXT 8 * 9 */ 10 1 11 /* 2 12 * Copyright 1997 Marcus Meissner … … 5 15 */ 6 16 17 18 /***************************************************************************** 19 * Includes * 20 *****************************************************************************/ 21 7 22 #include <stdlib.h> 8 23 #include <string.h> 9 10 24 #include <odin.h> 25 #include <odinwrap.h> 11 26 12 27 #define ICOM_CINTERFACE 1 … … 25 40 #include <misc.h> 26 41 27 DEFAULT_DEBUG_CHANNEL(shell) 42 43 ODINDEBUGCHANNEL(SHELL32-FOLDERS) 28 44 29 45 … … 54 70 char xriid[50]; 55 71 WINE_StringFromCLSID((LPCLSID)riid,xriid); 56 TRACE("(%p)->(\n\tIID:\t%s,%p)\n",This,xriid,ppvObj); 72 dprintf(("SHELL32:folders IExtractIconA_fnQueryInterface(%p)->(\n\tIID:\t%s,%p)\n", 73 This, 74 xriid, 75 ppvObj)); 57 76 58 77 *ppvObj = NULL; … … 70 89 if(*ppvObj) 71 90 { IExtractIconA_AddRef((IExtractIconA*) *ppvObj); 72 TRACE("-- Interface: (%p)->(%p)\n",ppvObj,*ppvObj);91 dprintf(("SHELL32:folders IExtractIconA_fnQueryInterface-- Interface: (%p)->(%p)\n",ppvObj,*ppvObj)); 73 92 return S_OK; 74 93 } 75 TRACE("-- Interface: E_NOINTERFACE\n");94 dprintf(("SHELL32:folders IExtractIconA_fnQueryInterface-- Interface: E_NOINTERFACE\n")); 76 95 return E_NOINTERFACE; 77 96 } … … 84 103 ICOM_THIS(IExtractIconAImpl,iface); 85 104 86 TRACE("(%p)->(count=%lu)\n",This, This->ref ); 105 dprintf(("SHELL32:folders IExtractIconA_fnAddRef(%p)->(count=%lu)\n", 106 This, 107 This->ref)); 87 108 88 109 shell32_ObjCount++; … … 97 118 ICOM_THIS(IExtractIconAImpl,iface); 98 119 99 TRACE("(%p)->()\n",This); 120 dprintf(("SHELL32:folders IExtractIconA_fnRelease(%p)->()\n", 121 This)); 100 122 101 123 shell32_ObjCount--; 102 124 103 125 if (!--(This->ref)) 104 { TRACE(" destroying IExtractIcon(%p)\n",This); 126 { dprintf(("SHELL32:folders IExtractIconA_fnRelease destroying IExtractIcon(%p)\n", 127 This)); 105 128 SHFree(This->pidl); 106 129 HeapFree(GetProcessHeap(),0,This); … … 129 152 LPITEMIDLIST pSimplePidl = ILFindLastID(This->pidl); 130 153 131 TRACE("(%p) (flags=%u %p %u %p %p)\n", This, uFlags, szIconFile, cchMax, piIndex, pwFlags); 154 dprintf(("SHELL32:folders IExtractIconA_fnGetIconLocation(%p) (flags=%u %p %u %p %p)\n", 155 This, 156 uFlags, 157 szIconFile, 158 cchMax, 159 piIndex, 160 pwFlags)); 132 161 133 162 if (pwFlags) … … 206 235 } 207 236 208 TRACE("-- %s %x\n", szIconFile, *piIndex); 237 dprintf(("SHELL32:folders IExtractIconA_fnGetIconLocation -- %s %x\n", 238 szIconFile, 239 *piIndex)); 209 240 return NOERROR; 210 241 } … … 216 247 ICOM_THIS(IExtractIconAImpl,iface); 217 248 218 FIXME("(%p) (file=%p index=%u %p %p size=%u) semi-stub\n", This, pszFile, nIconIndex, phiconLarge, phiconSmall, nIconSize); 249 dprintf(("SHELL32:folders IExtractIconA_fnExtract (%p) (file=%p index=%u %p %p size=%u) semi-stub\n", 250 This, 251 pszFile, 252 nIconIndex, 253 phiconLarge, 254 phiconSmall, 255 nIconSize)); 219 256 220 257 if (phiconLarge) … … 370 407 pdump(pidl); 371 408 372 TRACE("(%p)\n",ei); 409 dprintf(("SHELL32:folders IExtractIconA_Constructor(%p)\n", 410 ei)); 373 411 shell32_ObjCount++; 374 412 return (IExtractIconA *)ei; -
trunk/src/shell32/new/regstream.cpp
r795 r1167 1 /* $Id: regstream.cpp,v 1.3 1999-10-07 13:57:31 phaller Exp $ */ 2 3 /* 4 * Win32 SHELL32 for OS/2 5 * 6 * Copyright 1997 Marcus Meissner 7 * Copyright 1999 Patrick Haller (haller@zebra.fh-weingarten.de) 8 * Project Odin Software License can be found in LICENSE.TXT 9 * 10 */ 11 1 12 /* 2 13 * SHRegOpenStream 3 14 */ 15 16 /***************************************************************************** 17 * Includes * 18 *****************************************************************************/ 19 4 20 #include <string.h> 5 21 #include <odin.h> 22 #include <odinwrap.h> 23 #include <os2sel.h> 6 24 7 25 #define ICOM_CINTERFACE 1 … … 20 38 #include <misc.h> 21 39 22 DEFAULT_DEBUG_CHANNEL(shell) 40 41 ODINDEBUGCHANNEL(SHELL32-REGSTREAM) 42 43 44 /***************************************************************************** 45 * Implementation * 46 *****************************************************************************/ 23 47 24 48 typedef struct … … 46 70 WINE_StringFromCLSID((LPCLSID)riid,xriid); 47 71 48 TRACE("(%p)->(\n\tIID:\t%s,%p)\n",This,xriid,ppvObj); 72 dprintf(("SHELL32:regstream IStream_fnQueryInterface (%p)->(\n\tIID:\t%s,%p)\n", 73 This, 74 xriid, 75 ppvObj)); 49 76 50 77 *ppvObj = NULL; … … 60 87 { 61 88 IStream_AddRef((IStream*)*ppvObj); 62 TRACE("-- Interface: (%p)->(%p)\n",ppvObj,*ppvObj); 89 dprintf(("SHELL32:regstream IStream_fnQueryInterface -- Interface: (%p)->(%p)\n", 90 ppvObj, 91 *ppvObj)); 63 92 return S_OK; 64 93 } 65 TRACE("-- Interface: E_NOINTERFACE\n");94 dprintf(("SHELL32:regstream IStream_fnQueryInterface-- Interface: E_NOINTERFACE\n")); 66 95 return E_NOINTERFACE; 67 96 } … … 74 103 ICOM_THIS(ISHRegStream, iface); 75 104 76 TRACE("(%p)->(count=%lu)\n",This, This->ref); 105 dprintf(("SHELL32:regstream IStream_fnAddRef (%p)->(count=%lu)\n", 106 This, 107 This->ref)); 77 108 78 109 shell32_ObjCount++; … … 87 118 ICOM_THIS(ISHRegStream, iface); 88 119 89 TRACE("(%p)->()\n",This); 120 dprintf(("SHELL32:regstream IStream_fnRelease(%p)->()\n", 121 This)); 90 122 91 123 shell32_ObjCount--; 92 124 93 125 if (!--(This->ref)) 94 { TRACE(" destroying SHReg IStream (%p)\n",This); 126 { dprintf(("SHELL32:regstream IStream_fnRelease destroying SHReg IStream (%p)\n", 127 This)); 95 128 96 129 if (This->pszSubKey) … … 118 151 DWORD dwBytesToRead, dwBytesLeft; 119 152 120 TRACE("(%p)->(%p,0x%08lx,%p)\n",This, pv, cb, pcbRead); 153 dprintf(("SHELL32:regstream IStream_fnRead(%p)->(%p,0x%08lx,%p)\n", 154 This, 155 pv, 156 cb, 157 pcbRead)); 121 158 122 159 if ( !pv ) … … 143 180 ICOM_THIS(ISHRegStream, iface); 144 181 145 TRACE("(%p)\n",This); 182 dprintf(("SHELL32:regstream IStream_fnWrite(%p)\n", 183 This)); 146 184 147 185 return E_NOTIMPL; … … 151 189 ICOM_THIS(ISHRegStream, iface); 152 190 153 TRACE("(%p)\n",This); 191 dprintf(("SHELL32:regstream IStream_fnSeek(%p)\n", 192 This)); 154 193 155 194 return E_NOTIMPL; … … 159 198 ICOM_THIS(ISHRegStream, iface); 160 199 161 TRACE("(%p)\n",This); 200 dprintf(("SHELL32:regstream IStream_fnSetSize(%p)\n", 201 This)); 162 202 163 203 return E_NOTIMPL; … … 167 207 ICOM_THIS(ISHRegStream, iface); 168 208 169 TRACE("(%p)\n",This); 209 dprintf(("SHELL32:regstream IStream_fnCopyTo(%p)\n", 210 This)); 170 211 171 212 return E_NOTIMPL; … … 175 216 ICOM_THIS(ISHRegStream, iface); 176 217 177 TRACE("(%p)\n",This); 218 dprintf(("SHELL32:regstream IStream_fnCommit(%p)\n", 219 This)); 178 220 179 221 return E_NOTIMPL; … … 183 225 ICOM_THIS(ISHRegStream, iface); 184 226 185 TRACE("(%p)\n",This); 227 dprintf(("SHELL32:regstream IStream_fnRevert(%p)\n", 228 This)); 186 229 187 230 return E_NOTIMPL; … … 191 234 ICOM_THIS(ISHRegStream, iface); 192 235 193 TRACE("(%p)\n",This); 236 dprintf(("SHELL32:regstream IStream_fnLockRegion(%p)\n", 237 This)); 194 238 195 239 return E_NOTIMPL; … … 199 243 ICOM_THIS(ISHRegStream, iface); 200 244 201 TRACE("(%p)\n",This); 245 dprintf(("SHELL32:regstream IStream_fnUnlockRegion(%p)\n", 246 This)); 202 247 203 248 return E_NOTIMPL; … … 207 252 ICOM_THIS(ISHRegStream, iface); 208 253 209 TRACE("(%p)\n",This); 254 dprintf(("SHELL32:regstream IStream_fnStat(%p)\n", 255 This)); 210 256 211 257 return E_NOTIMPL; … … 215 261 ICOM_THIS(ISHRegStream, iface); 216 262 217 TRACE("(%p)\n",This); 263 dprintf(("SHELL32:regstream IStream_fnClone(%p)\n", 264 This)); 218 265 219 266 return E_NOTIMPL; … … 251 298 rstr->ref = 1; 252 299 300 dprintf(("SHELL32:regstream IStream_Constructor(%08xh,%ls,%ls,%08xh)\n", 301 hKey, 302 pszSubKey, 303 pszValue, 304 grfMode)); 305 253 306 if ( ERROR_SUCCESS == RegOpenKeyExA (hKey, pszSubKey, 0, KEY_READ, &(rstr->hKey))) 254 307 { if ( ERROR_SUCCESS == RegQueryValueExA(rstr->hKey, (LPSTR)pszValue,0,0,0,&(rstr->dwLength))) … … 261 314 { rstr->pszSubKey = HEAP_strdupA (GetProcessHeap(),0, pszSubKey); 262 315 rstr->pszValue = HEAP_strdupA (GetProcessHeap(),0, pszValue); 263 TRACE("(%p)->0x%08x,%s,%s,0x%08lx\n", rstr, hKey, pszSubKey, pszValue, grfMode);316 dprintf(("SHELL32:regstream IStream_Constructor(%p)->0x%08x,%s,%s,0x%08lx\n", rstr, hKey, pszSubKey, pszValue, grfMode)); 264 317 shell32_ObjCount++; 265 318 return (IStream*)rstr; … … 285 338 IStream * WINAPI OpenRegStream(HKEY hkey, LPCSTR pszSubkey, LPCSTR pszValue, DWORD grfMode) 286 339 { 287 TRACE("(0x%08x,%s,%s,0x%08lx)\n",hkey, pszSubkey, pszValue, grfMode); 340 dprintf(("SHELL32:regstream OpenRegStream(0x%08x,%s,%s,0x%08lx)\n", 341 hkey, 342 pszSubkey, 343 pszValue, 344 grfMode)); 288 345 return IStream_Constructor(hkey, pszSubkey, pszValue, grfMode); 289 346 }
Note:
See TracChangeset
for help on using the changeset viewer.