2002-05-09 21:42:07 +02:00
|
|
|
/*
|
|
|
|
* Helper functions for debugging
|
|
|
|
*
|
|
|
|
* Copyright 1998, 2002 Juergen Schmied
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-05-09 21:42:07 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "windef.h"
|
|
|
|
#include "wingdi.h"
|
2002-05-09 21:42:07 +02:00
|
|
|
#include "pidl.h"
|
2004-04-19 21:26:57 +02:00
|
|
|
#include "shldisp.h"
|
2002-05-09 21:42:07 +02:00
|
|
|
#include "wine/debug.h"
|
|
|
|
#include "debughlp.h"
|
2002-07-02 04:05:17 +02:00
|
|
|
#include "docobj.h"
|
|
|
|
#include "shell32_main.h"
|
2002-05-09 21:42:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(pidl);
|
|
|
|
|
2004-08-09 20:49:42 +02:00
|
|
|
static
|
2010-03-28 09:57:39 +02:00
|
|
|
LPCITEMIDLIST _dbg_ILGetNext(LPCITEMIDLIST pidl)
|
2002-05-09 21:42:07 +02:00
|
|
|
{
|
|
|
|
WORD len;
|
|
|
|
|
|
|
|
if(pidl)
|
|
|
|
{
|
|
|
|
len = pidl->mkid.cb;
|
|
|
|
if (len)
|
|
|
|
{
|
2010-03-28 09:57:39 +02:00
|
|
|
return (LPCITEMIDLIST) (((const BYTE*)pidl)+len);
|
2002-05-09 21:42:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2004-08-09 20:49:42 +02:00
|
|
|
static
|
2002-05-09 21:42:07 +02:00
|
|
|
BOOL _dbg_ILIsDesktop(LPCITEMIDLIST pidl)
|
|
|
|
{
|
|
|
|
return ( !pidl || (pidl && pidl->mkid.cb == 0x00) );
|
|
|
|
}
|
|
|
|
|
2004-08-09 20:49:42 +02:00
|
|
|
static
|
2010-03-28 09:57:39 +02:00
|
|
|
const PIDLDATA* _dbg_ILGetDataPointer(LPCITEMIDLIST pidl)
|
2002-05-09 21:42:07 +02:00
|
|
|
{
|
|
|
|
if(pidl && pidl->mkid.cb != 0x00)
|
2010-03-28 09:57:39 +02:00
|
|
|
return (const PIDLDATA*)pidl->mkid.abID;
|
2002-05-09 21:42:07 +02:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2004-08-09 20:49:42 +02:00
|
|
|
static
|
2010-03-28 09:57:39 +02:00
|
|
|
LPCSTR _dbg_ILGetTextPointer(LPCITEMIDLIST pidl)
|
2002-05-09 21:42:07 +02:00
|
|
|
{
|
2010-03-28 09:57:39 +02:00
|
|
|
const PIDLDATA* pdata =_dbg_ILGetDataPointer(pidl);
|
2002-05-09 21:42:07 +02:00
|
|
|
|
|
|
|
if (pdata)
|
|
|
|
{
|
|
|
|
switch (pdata->type)
|
|
|
|
{
|
2004-04-06 05:22:29 +02:00
|
|
|
case PT_GUID:
|
2004-04-07 01:12:11 +02:00
|
|
|
case PT_SHELLEXT:
|
2004-10-26 02:17:31 +02:00
|
|
|
case PT_YAGUID:
|
2002-05-09 21:42:07 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
case PT_DRIVE:
|
|
|
|
case PT_DRIVE1:
|
|
|
|
case PT_DRIVE2:
|
|
|
|
case PT_DRIVE3:
|
2009-02-18 22:46:39 +01:00
|
|
|
return pdata->u.drive.szDriveName;
|
2002-05-09 21:42:07 +02:00
|
|
|
|
|
|
|
case PT_FOLDER:
|
|
|
|
case PT_FOLDER1:
|
|
|
|
case PT_VALUE:
|
|
|
|
case PT_IESPECIAL1:
|
|
|
|
case PT_IESPECIAL2:
|
2009-02-18 22:46:39 +01:00
|
|
|
return pdata->u.file.szNames;
|
2002-05-09 21:42:07 +02:00
|
|
|
|
|
|
|
case PT_WORKGRP:
|
|
|
|
case PT_COMP:
|
|
|
|
case PT_NETWORK:
|
2003-05-19 23:42:44 +02:00
|
|
|
case PT_NETPROVIDER:
|
2002-05-09 21:42:07 +02:00
|
|
|
case PT_SHARE:
|
2009-02-18 22:46:39 +01:00
|
|
|
return pdata->u.network.szNames;
|
2002-05-09 21:42:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2007-04-09 13:52:21 +02:00
|
|
|
static
|
2010-03-28 09:57:39 +02:00
|
|
|
LPCWSTR _dbg_ILGetTextPointerW(LPCITEMIDLIST pidl)
|
2007-04-09 13:52:21 +02:00
|
|
|
{
|
2010-03-28 09:57:39 +02:00
|
|
|
const PIDLDATA* pdata =_dbg_ILGetDataPointer(pidl);
|
2007-04-09 13:52:21 +02:00
|
|
|
|
|
|
|
if (pdata)
|
|
|
|
{
|
|
|
|
switch (pdata->type)
|
|
|
|
{
|
|
|
|
case PT_GUID:
|
|
|
|
case PT_SHELLEXT:
|
|
|
|
case PT_YAGUID:
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
case PT_DRIVE:
|
|
|
|
case PT_DRIVE1:
|
|
|
|
case PT_DRIVE2:
|
|
|
|
case PT_DRIVE3:
|
|
|
|
/* return (LPSTR)&(pdata->u.drive.szDriveName);*/
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
case PT_FOLDER:
|
|
|
|
case PT_FOLDER1:
|
|
|
|
case PT_VALUE:
|
|
|
|
case PT_IESPECIAL1:
|
|
|
|
case PT_IESPECIAL2:
|
|
|
|
/* return (LPSTR)&(pdata->u.file.szNames); */
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
case PT_WORKGRP:
|
|
|
|
case PT_COMP:
|
|
|
|
case PT_NETWORK:
|
|
|
|
case PT_NETPROVIDER:
|
|
|
|
case PT_SHARE:
|
|
|
|
/* return (LPSTR)&(pdata->u.network.szNames); */
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
case PT_VALUEW:
|
2010-03-28 09:57:39 +02:00
|
|
|
return (LPCWSTR)pdata->u.file.szNames;
|
2007-04-09 13:52:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-08-09 20:49:42 +02:00
|
|
|
static
|
2010-03-28 09:57:39 +02:00
|
|
|
LPCSTR _dbg_ILGetSTextPointer(LPCITEMIDLIST pidl)
|
2002-05-09 21:42:07 +02:00
|
|
|
{
|
2010-03-28 09:57:39 +02:00
|
|
|
const PIDLDATA* pdata =_dbg_ILGetDataPointer(pidl);
|
2002-05-09 21:42:07 +02:00
|
|
|
|
|
|
|
if (pdata)
|
|
|
|
{
|
|
|
|
switch (pdata->type)
|
|
|
|
{
|
|
|
|
case PT_FOLDER:
|
|
|
|
case PT_VALUE:
|
|
|
|
case PT_IESPECIAL1:
|
|
|
|
case PT_IESPECIAL2:
|
2009-02-18 22:46:39 +01:00
|
|
|
return pdata->u.file.szNames + strlen (pdata->u.file.szNames) + 1;
|
2002-05-09 21:42:07 +02:00
|
|
|
|
|
|
|
case PT_WORKGRP:
|
2009-02-18 22:46:39 +01:00
|
|
|
return pdata->u.network.szNames + strlen (pdata->u.network.szNames) + 1;
|
2002-05-09 21:42:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2007-04-09 13:52:21 +02:00
|
|
|
static
|
2010-03-28 09:57:39 +02:00
|
|
|
LPCWSTR _dbg_ILGetSTextPointerW(LPCITEMIDLIST pidl)
|
2007-04-09 13:52:21 +02:00
|
|
|
{
|
2010-03-28 09:57:39 +02:00
|
|
|
const PIDLDATA* pdata =_dbg_ILGetDataPointer(pidl);
|
2007-04-09 13:52:21 +02:00
|
|
|
|
|
|
|
if (pdata)
|
|
|
|
{
|
|
|
|
switch (pdata->type)
|
|
|
|
{
|
|
|
|
case PT_FOLDER:
|
|
|
|
case PT_VALUE:
|
|
|
|
case PT_IESPECIAL1:
|
|
|
|
case PT_IESPECIAL2:
|
|
|
|
/*return (LPSTR)(pdata->u.file.szNames + strlen (pdata->u.file.szNames) + 1); */
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
case PT_WORKGRP:
|
|
|
|
/* return (LPSTR)(pdata->u.network.szNames + strlen (pdata->u.network.szNames) + 1); */
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
case PT_VALUEW:
|
2010-03-28 09:57:39 +02:00
|
|
|
return (LPCWSTR)(pdata->u.file.szNames + lstrlenW ((LPCWSTR)pdata->u.file.szNames) + 1);
|
2007-04-09 13:52:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-08-09 20:49:42 +02:00
|
|
|
static
|
|
|
|
IID* _dbg_ILGetGUIDPointer(LPCITEMIDLIST pidl)
|
2002-05-09 21:42:07 +02:00
|
|
|
{
|
|
|
|
LPPIDLDATA pdata =_ILGetDataPointer(pidl);
|
|
|
|
|
|
|
|
if (pdata)
|
|
|
|
{
|
|
|
|
switch (pdata->type)
|
|
|
|
{
|
2004-04-07 01:12:11 +02:00
|
|
|
case PT_SHELLEXT:
|
2004-04-06 05:22:29 +02:00
|
|
|
case PT_GUID:
|
2005-04-13 16:39:27 +02:00
|
|
|
case PT_YAGUID:
|
2004-08-09 20:49:42 +02:00
|
|
|
return &(pdata->u.guid.guid);
|
2002-05-09 21:42:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2004-08-09 20:49:42 +02:00
|
|
|
static
|
2005-09-08 20:54:03 +02:00
|
|
|
void _dbg_ILSimpleGetText (LPCITEMIDLIST pidl, LPSTR szOut, UINT uOutSize)
|
2002-05-09 21:42:07 +02:00
|
|
|
{
|
2010-03-28 09:57:39 +02:00
|
|
|
LPCSTR szSrc;
|
|
|
|
LPCWSTR szSrcW;
|
2002-05-09 21:42:07 +02:00
|
|
|
GUID const * riid;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2005-09-08 20:54:03 +02:00
|
|
|
if (!pidl) return;
|
2002-05-09 21:42:07 +02:00
|
|
|
|
|
|
|
if (szOut)
|
|
|
|
*szOut = 0;
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
if (_dbg_ILIsDesktop(pidl))
|
2002-05-09 21:42:07 +02:00
|
|
|
{
|
|
|
|
/* desktop */
|
2005-04-18 12:30:55 +02:00
|
|
|
if (szOut) lstrcpynA(szOut, "Desktop", uOutSize);
|
2002-05-09 21:42:07 +02:00
|
|
|
}
|
|
|
|
else if (( szSrc = _dbg_ILGetTextPointer(pidl) ))
|
|
|
|
{
|
|
|
|
/* filesystem */
|
2005-04-18 12:30:55 +02:00
|
|
|
if (szOut) lstrcpynA(szOut, szSrc, uOutSize);
|
2002-05-09 21:42:07 +02:00
|
|
|
}
|
2007-04-09 13:52:21 +02:00
|
|
|
else if (( szSrcW = _dbg_ILGetTextPointerW(pidl) ))
|
|
|
|
{
|
|
|
|
CHAR tmp[MAX_PATH];
|
|
|
|
/* unicode filesystem */
|
|
|
|
WideCharToMultiByte(CP_ACP,0,szSrcW, -1, tmp, MAX_PATH, NULL, NULL);
|
|
|
|
if (szOut) lstrcpynA(szOut, tmp, uOutSize);
|
|
|
|
}
|
2002-05-09 21:42:07 +02:00
|
|
|
else if (( riid = _dbg_ILGetGUIDPointer(pidl) ))
|
|
|
|
{
|
|
|
|
if (szOut)
|
2006-10-15 12:27:34 +02:00
|
|
|
sprintf( szOut, "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
|
2002-05-09 21:42:07 +02:00
|
|
|
riid->Data1, riid->Data2, riid->Data3,
|
|
|
|
riid->Data4[0], riid->Data4[1], riid->Data4[2], riid->Data4[3],
|
|
|
|
riid->Data4[4], riid->Data4[5], riid->Data4[6], riid->Data4[7] );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void pdump (LPCITEMIDLIST pidl)
|
|
|
|
{
|
2003-09-02 03:01:06 +02:00
|
|
|
LPCITEMIDLIST pidltemp = pidl;
|
2002-05-09 21:42:07 +02:00
|
|
|
|
|
|
|
if (!TRACE_ON(pidl)) return;
|
|
|
|
|
|
|
|
if (! pidltemp)
|
|
|
|
{
|
|
|
|
MESSAGE ("-------- pidl=NULL (Desktop)\n");
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
MESSAGE ("-------- pidl=%p\n", pidl);
|
|
|
|
if (pidltemp->mkid.cb)
|
2002-06-01 01:06:46 +02:00
|
|
|
{
|
2002-05-09 21:42:07 +02:00
|
|
|
do
|
|
|
|
{
|
2007-04-09 13:52:21 +02:00
|
|
|
if (_ILIsUnicode(pidltemp))
|
|
|
|
{
|
|
|
|
DWORD dwAttrib = 0;
|
2010-03-28 09:57:39 +02:00
|
|
|
const PIDLDATA* pData = _dbg_ILGetDataPointer(pidltemp);
|
2007-04-09 13:52:21 +02:00
|
|
|
DWORD type = pData ? pData->type : 0;
|
2010-03-28 09:57:39 +02:00
|
|
|
LPCWSTR szLongName = _dbg_ILGetTextPointerW(pidltemp);
|
|
|
|
LPCWSTR szShortName = _dbg_ILGetSTextPointerW(pidltemp);
|
2007-04-09 13:52:21 +02:00
|
|
|
char szName[MAX_PATH];
|
|
|
|
|
|
|
|
_dbg_ILSimpleGetText(pidltemp, szName, MAX_PATH);
|
|
|
|
if ( pData && (PT_FOLDER == type || PT_VALUE == type) )
|
|
|
|
dwAttrib = pData->u.file.uFileAttribs;
|
|
|
|
|
|
|
|
MESSAGE ("[%p] size=%04u type=%x attr=0x%08x name=%s (%s,%s)\n",
|
|
|
|
pidltemp, pidltemp->mkid.cb, type, dwAttrib,
|
|
|
|
debugstr_a(szName), debugstr_w(szLongName), debugstr_w(szShortName));
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
DWORD dwAttrib = 0;
|
2010-03-28 09:57:39 +02:00
|
|
|
const PIDLDATA* pData = _dbg_ILGetDataPointer(pidltemp);
|
2007-04-09 13:52:21 +02:00
|
|
|
DWORD type = pData ? pData->type : 0;
|
2010-03-28 09:57:39 +02:00
|
|
|
LPCSTR szLongName = _dbg_ILGetTextPointer(pidltemp);
|
|
|
|
LPCSTR szShortName = _dbg_ILGetSTextPointer(pidltemp);
|
2007-04-09 13:52:21 +02:00
|
|
|
char szName[MAX_PATH];
|
|
|
|
|
|
|
|
_dbg_ILSimpleGetText(pidltemp, szName, MAX_PATH);
|
|
|
|
if ( pData && (PT_FOLDER == type || PT_VALUE == type) )
|
|
|
|
dwAttrib = pData->u.file.uFileAttribs;
|
|
|
|
|
|
|
|
MESSAGE ("[%p] size=%04u type=%x attr=0x%08x name=%s (%s,%s)\n",
|
|
|
|
pidltemp, pidltemp->mkid.cb, type, dwAttrib,
|
|
|
|
debugstr_a(szName), debugstr_a(szLongName), debugstr_a(szShortName));
|
|
|
|
}
|
2002-05-09 21:42:07 +02:00
|
|
|
|
|
|
|
pidltemp = _dbg_ILGetNext(pidltemp);
|
|
|
|
|
2005-03-17 19:55:16 +01:00
|
|
|
} while (pidltemp && pidltemp->mkid.cb);
|
2002-05-09 21:42:07 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
MESSAGE ("empty pidl (Desktop)\n");
|
|
|
|
}
|
|
|
|
pcheck(pidl);
|
|
|
|
}
|
|
|
|
}
|
2005-03-31 12:05:59 +02:00
|
|
|
|
|
|
|
static void dump_pidl_hex( LPCITEMIDLIST pidl )
|
2002-05-09 21:42:07 +02:00
|
|
|
{
|
2005-03-31 12:05:59 +02:00
|
|
|
const unsigned char *p = (const unsigned char *)pidl;
|
2006-01-12 13:29:21 +01:00
|
|
|
const int max_bytes = 0x80;
|
|
|
|
#define max_line 0x10
|
2005-03-31 12:05:59 +02:00
|
|
|
char szHex[max_line*3+1], szAscii[max_line+1];
|
|
|
|
int i, n;
|
|
|
|
|
|
|
|
n = pidl->mkid.cb;
|
|
|
|
if( n>max_bytes )
|
|
|
|
n = max_bytes;
|
|
|
|
for( i=0; i<n; i++ )
|
|
|
|
{
|
|
|
|
sprintf( &szHex[ (i%max_line)*3 ], "%02X ", p[i] );
|
|
|
|
szAscii[ (i%max_line) ] = isprint( p[i] ) ? p[i] : '.';
|
|
|
|
|
|
|
|
/* print out at the end of each line and when we're finished */
|
|
|
|
if( i!=(n-1) && (i%max_line) != (max_line-1) )
|
|
|
|
continue;
|
|
|
|
szAscii[ (i%max_line)+1 ] = 0;
|
2005-08-09 22:48:17 +02:00
|
|
|
ERR("%-*s %s\n", max_line*3, szHex, szAscii );
|
2005-03-31 12:05:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL pcheck( LPCITEMIDLIST pidl )
|
|
|
|
{
|
|
|
|
DWORD type;
|
|
|
|
LPCITEMIDLIST pidltemp = pidl;
|
|
|
|
|
|
|
|
while( pidltemp && pidltemp->mkid.cb )
|
|
|
|
{
|
|
|
|
type = _dbg_ILGetDataPointer(pidltemp)->type;
|
|
|
|
switch( type )
|
|
|
|
{
|
|
|
|
case PT_CPLAPPLET:
|
|
|
|
case PT_GUID:
|
|
|
|
case PT_SHELLEXT:
|
|
|
|
case PT_DRIVE:
|
|
|
|
case PT_DRIVE1:
|
|
|
|
case PT_DRIVE2:
|
|
|
|
case PT_DRIVE3:
|
|
|
|
case PT_FOLDER:
|
|
|
|
case PT_VALUE:
|
2005-04-13 16:39:27 +02:00
|
|
|
case PT_VALUEW:
|
2005-03-31 12:05:59 +02:00
|
|
|
case PT_FOLDER1:
|
|
|
|
case PT_WORKGRP:
|
|
|
|
case PT_COMP:
|
|
|
|
case PT_NETPROVIDER:
|
|
|
|
case PT_NETWORK:
|
|
|
|
case PT_IESPECIAL1:
|
|
|
|
case PT_YAGUID:
|
|
|
|
case PT_IESPECIAL2:
|
|
|
|
case PT_SHARE:
|
|
|
|
break;
|
|
|
|
default:
|
2006-10-07 20:18:14 +02:00
|
|
|
ERR("unknown IDLIST %p [%p] size=%u type=%x\n",
|
2005-03-31 12:05:59 +02:00
|
|
|
pidl, pidltemp, pidltemp->mkid.cb,type );
|
|
|
|
dump_pidl_hex( pidltemp );
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
pidltemp = _dbg_ILGetNext(pidltemp);
|
|
|
|
}
|
|
|
|
return TRUE;
|
2002-05-09 21:42:07 +02:00
|
|
|
}
|
2002-07-02 04:05:17 +02:00
|
|
|
|
2005-09-08 20:54:03 +02:00
|
|
|
static const struct {
|
2005-06-07 22:30:30 +02:00
|
|
|
REFIID riid;
|
|
|
|
const char *name;
|
2002-07-02 04:05:17 +02:00
|
|
|
} InterfaceDesc[] = {
|
|
|
|
{&IID_IUnknown, "IID_IUnknown"},
|
2002-07-24 03:56:03 +02:00
|
|
|
{&IID_IClassFactory, "IID_IClassFactory"},
|
2002-07-02 04:05:17 +02:00
|
|
|
{&IID_IShellView, "IID_IShellView"},
|
|
|
|
{&IID_IOleCommandTarget, "IID_IOleCommandTarget"},
|
|
|
|
{&IID_IDropTarget, "IID_IDropTarget"},
|
|
|
|
{&IID_IDropSource, "IID_IDropSource"},
|
|
|
|
{&IID_IViewObject, "IID_IViewObject"},
|
|
|
|
{&IID_IContextMenu, "IID_IContextMenu"},
|
|
|
|
{&IID_IShellExtInit, "IID_IShellExtInit"},
|
|
|
|
{&IID_IShellFolder, "IID_IShellFolder"},
|
|
|
|
{&IID_IShellFolder2, "IID_IShellFolder2"},
|
|
|
|
{&IID_IPersist, "IID_IPersist"},
|
|
|
|
{&IID_IPersistFolder, "IID_IPersistFolder"},
|
|
|
|
{&IID_IPersistFolder2, "IID_IPersistFolder2"},
|
|
|
|
{&IID_IPersistFolder3, "IID_IPersistFolder3"},
|
|
|
|
{&IID_IExtractIconA, "IID_IExtractIconA"},
|
2002-12-16 23:39:42 +01:00
|
|
|
{&IID_IExtractIconW, "IID_IExtractIconW"},
|
2002-07-02 04:05:17 +02:00
|
|
|
{&IID_IDataObject, "IID_IDataObject"},
|
2004-04-19 21:26:57 +02:00
|
|
|
{&IID_IAutoComplete, "IID_IAutoComplete"},
|
|
|
|
{&IID_IAutoComplete2, "IID_IAutoComplete2"},
|
2005-04-13 16:39:27 +02:00
|
|
|
{&IID_IShellLinkA, "IID_IShellLinkA"},
|
|
|
|
{&IID_IShellLinkW, "IID_IShellLinkW"},
|
2002-07-02 04:05:17 +02:00
|
|
|
{NULL,NULL}};
|
|
|
|
|
|
|
|
const char * shdebugstr_guid( const struct _GUID *id )
|
|
|
|
{
|
|
|
|
int i;
|
2005-06-07 22:30:30 +02:00
|
|
|
const char* name = NULL;
|
2002-07-02 04:05:17 +02:00
|
|
|
char clsidbuf[100];
|
|
|
|
|
2005-09-08 20:54:03 +02:00
|
|
|
if (!id) return "(null)";
|
2002-07-24 03:56:03 +02:00
|
|
|
|
2010-03-21 02:42:59 +01:00
|
|
|
for (i = 0; InterfaceDesc[i].riid && !name; i++) {
|
|
|
|
if (IsEqualIID(InterfaceDesc[i].riid, id)) name = InterfaceDesc[i].name;
|
|
|
|
}
|
|
|
|
if (!name) {
|
|
|
|
if (HCR_GetClassNameA(id, clsidbuf, 100))
|
|
|
|
name = clsidbuf;
|
|
|
|
}
|
|
|
|
|
|
|
|
return wine_dbg_sprintf( "%s (%s)", debugstr_guid(id), name ? name : "unknown" );
|
2002-07-02 04:05:17 +02:00
|
|
|
}
|