Changeset 1167 for trunk/src/shell32/new/regstream.cpp
- Timestamp:
- Oct 7, 1999, 3:57:31 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.