Changeset 1167 for trunk/src


Ignore:
Timestamp:
Oct 7, 1999, 3:57:31 PM (26 years ago)
Author:
phaller
Message:

Fix: debug info

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
    111/*
    212 *      Copyright 1997  Marcus Meissner
     
    515 */
    616
     17
     18/*****************************************************************************
     19 * Includes                                                                  *
     20 *****************************************************************************/
     21
    722#include <stdlib.h>
    823#include <string.h>
    9 
    1024#include <odin.h>
     25#include <odinwrap.h>
    1126
    1227#define ICOM_CINTERFACE 1
     
    2540#include <misc.h>
    2641
    27 DEFAULT_DEBUG_CHANNEL(shell)
     42
     43ODINDEBUGCHANNEL(SHELL32-FOLDERS)
    2844
    2945
     
    5470        char    xriid[50];
    5571         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));
    5776
    5877        *ppvObj = NULL;
     
    7089        if(*ppvObj)
    7190        { IExtractIconA_AddRef((IExtractIconA*) *ppvObj);       
    72           TRACE("-- Interface: (%p)->(%p)\n",ppvObj,*ppvObj);
     91          dprintf(("SHELL32:folders IExtractIconA_fnQueryInterface-- Interface: (%p)->(%p)\n",ppvObj,*ppvObj));
    7392          return S_OK;
    7493        }
    75         TRACE("-- Interface: E_NOINTERFACE\n");
     94        dprintf(("SHELL32:folders IExtractIconA_fnQueryInterface-- Interface: E_NOINTERFACE\n"));
    7695        return E_NOINTERFACE;
    7796}
     
    84103        ICOM_THIS(IExtractIconAImpl,iface);
    85104
    86         TRACE("(%p)->(count=%lu)\n",This, This->ref );
     105        dprintf(("SHELL32:folders IExtractIconA_fnAddRef(%p)->(count=%lu)\n",
     106          This,
     107          This->ref));
    87108
    88109        shell32_ObjCount++;
     
    97118        ICOM_THIS(IExtractIconAImpl,iface);
    98119
    99         TRACE("(%p)->()\n",This);
     120        dprintf(("SHELL32:folders IExtractIconA_fnRelease(%p)->()\n",
     121          This));
    100122
    101123        shell32_ObjCount--;
    102124
    103125        if (!--(This->ref))
    104         { TRACE(" destroying IExtractIcon(%p)\n",This);
     126        { dprintf(("SHELL32:folders  IExtractIconA_fnRelease destroying IExtractIcon(%p)\n",
     127            This));
    105128          SHFree(This->pidl);
    106129          HeapFree(GetProcessHeap(),0,This);
     
    129152        LPITEMIDLIST    pSimplePidl = ILFindLastID(This->pidl);
    130153                       
    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));
    132161
    133162        if (pwFlags)
     
    206235        }
    207236
    208         TRACE("-- %s %x\n", szIconFile, *piIndex);
     237        dprintf(("SHELL32:folders IExtractIconA_fnGetIconLocation -- %s %x\n",
     238          szIconFile,
     239          *piIndex));
    209240        return NOERROR;
    210241}
     
    216247        ICOM_THIS(IExtractIconAImpl,iface);
    217248
    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));
    219256
    220257        if (phiconLarge)
     
    370407        pdump(pidl);
    371408
    372         TRACE("(%p)\n",ei);
     409        dprintf(("SHELL32:folders IExtractIconA_Constructor(%p)\n",
     410          ei));
    373411        shell32_ObjCount++;
    374412        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
    112/*
    213 *      SHRegOpenStream
    314 */
     15
     16/*****************************************************************************
     17 * Includes                                                                  *
     18 *****************************************************************************/
     19
    420#include <string.h>
    521#include <odin.h>
     22#include <odinwrap.h>
     23#include <os2sel.h>
    624
    725#define ICOM_CINTERFACE 1
     
    2038#include <misc.h>
    2139
    22 DEFAULT_DEBUG_CHANNEL(shell)
     40
     41ODINDEBUGCHANNEL(SHELL32-REGSTREAM)
     42
     43
     44/*****************************************************************************
     45 * Implementation                                                            *
     46 *****************************************************************************/
    2347
    2448typedef struct
     
    4670        WINE_StringFromCLSID((LPCLSID)riid,xriid);
    4771
    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));
    4976
    5077        *ppvObj = NULL;
     
    6087        {
    6188          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));
    6392          return S_OK;
    6493        }
    65         TRACE("-- Interface: E_NOINTERFACE\n");
     94        dprintf(("SHELL32:regstream IStream_fnQueryInterface-- Interface: E_NOINTERFACE\n"));
    6695        return E_NOINTERFACE;
    6796}
     
    74103        ICOM_THIS(ISHRegStream, iface);
    75104
    76         TRACE("(%p)->(count=%lu)\n",This, This->ref);
     105          dprintf(("SHELL32:regstream IStream_fnAddRef (%p)->(count=%lu)\n",
     106            This,
     107            This->ref));
    77108
    78109        shell32_ObjCount++;
     
    87118        ICOM_THIS(ISHRegStream, iface);
    88119
    89         TRACE("(%p)->()\n",This);
     120          dprintf(("SHELL32:regstream IStream_fnRelease(%p)->()\n",
     121            This));
    90122
    91123        shell32_ObjCount--;
    92124
    93125        if (!--(This->ref))
    94         { TRACE(" destroying SHReg IStream (%p)\n",This);
     126        { dprintf(("SHELL32:regstream IStream_fnRelease destroying SHReg IStream (%p)\n",
     127            This));
    95128
    96129          if (This->pszSubKey)
     
    118151        DWORD dwBytesToRead, dwBytesLeft;
    119152       
    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));
    121158       
    122159        if ( !pv )
     
    143180        ICOM_THIS(ISHRegStream, iface);
    144181
    145         TRACE("(%p)\n",This);
     182        dprintf(("SHELL32:regstream IStream_fnWrite(%p)\n",
     183          This));
    146184
    147185        return E_NOTIMPL;
     
    151189        ICOM_THIS(ISHRegStream, iface);
    152190
    153         TRACE("(%p)\n",This);
     191        dprintf(("SHELL32:regstream IStream_fnSeek(%p)\n",
     192          This));
    154193
    155194        return E_NOTIMPL;
     
    159198        ICOM_THIS(ISHRegStream, iface);
    160199
    161         TRACE("(%p)\n",This);
     200        dprintf(("SHELL32:regstream IStream_fnSetSize(%p)\n",
     201          This));
    162202
    163203        return E_NOTIMPL;
     
    167207        ICOM_THIS(ISHRegStream, iface);
    168208
    169         TRACE("(%p)\n",This);
     209          dprintf(("SHELL32:regstream IStream_fnCopyTo(%p)\n",
     210            This));
    170211
    171212        return E_NOTIMPL;
     
    175216        ICOM_THIS(ISHRegStream, iface);
    176217
    177         TRACE("(%p)\n",This);
     218          dprintf(("SHELL32:regstream IStream_fnCommit(%p)\n",
     219            This));
    178220
    179221        return E_NOTIMPL;
     
    183225        ICOM_THIS(ISHRegStream, iface);
    184226
    185         TRACE("(%p)\n",This);
     227        dprintf(("SHELL32:regstream IStream_fnRevert(%p)\n",
     228          This));
    186229
    187230        return E_NOTIMPL;
     
    191234        ICOM_THIS(ISHRegStream, iface);
    192235
    193         TRACE("(%p)\n",This);
     236        dprintf(("SHELL32:regstream IStream_fnLockRegion(%p)\n",
     237          This));
    194238
    195239        return E_NOTIMPL;
     
    199243        ICOM_THIS(ISHRegStream, iface);
    200244
    201         TRACE("(%p)\n",This);
     245          dprintf(("SHELL32:regstream IStream_fnUnlockRegion(%p)\n",
     246            This));
    202247
    203248        return E_NOTIMPL;
     
    207252        ICOM_THIS(ISHRegStream, iface);
    208253
    209         TRACE("(%p)\n",This);
     254          dprintf(("SHELL32:regstream IStream_fnStat(%p)\n",
     255            This));
    210256
    211257        return E_NOTIMPL;
     
    215261        ICOM_THIS(ISHRegStream, iface);
    216262
    217         TRACE("(%p)\n",This);
     263          dprintf(("SHELL32:regstream IStream_fnClone(%p)\n",
     264            This));
    218265
    219266        return E_NOTIMPL;
     
    251298        rstr->ref = 1;
    252299
     300 dprintf(("SHELL32:regstream IStream_Constructor(%08xh,%ls,%ls,%08xh)\n",
     301          hKey,
     302          pszSubKey,
     303          pszValue,
     304          grfMode));
     305
    253306        if ( ERROR_SUCCESS == RegOpenKeyExA (hKey, pszSubKey, 0, KEY_READ, &(rstr->hKey)))
    254307        { if ( ERROR_SUCCESS == RegQueryValueExA(rstr->hKey, (LPSTR)pszValue,0,0,0,&(rstr->dwLength)))
     
    261314                { rstr->pszSubKey = HEAP_strdupA (GetProcessHeap(),0, pszSubKey);
    262315                  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));
    264317                  shell32_ObjCount++;
    265318                  return (IStream*)rstr;
     
    285338IStream * WINAPI OpenRegStream(HKEY hkey, LPCSTR pszSubkey, LPCSTR pszValue, DWORD grfMode)
    286339{
    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));
    288345        return IStream_Constructor(hkey, pszSubkey, pszValue, grfMode);
    289346}
Note: See TracChangeset for help on using the changeset viewer.