4 * Copyright 1997 Marcus Meissner
14 #include "interfaces.h"
17 /******************************************************************************
18 * IEnumIDList implementation
21 static ULONG WINAPI
IEnumIDList_AddRef(LPENUMIDLIST
this) {
22 fprintf(stderr
,"IEnumIDList(%p)->AddRef()\n",this);
26 static ULONG WINAPI
IEnumIDList_Release(LPENUMIDLIST
this) {
27 fprintf(stderr
,"IEnumIDList(%p)->Release()\n",this);
29 fprintf(stderr
," -> freeing IEnumIDList(%p)\n",this);
30 HeapFree(GetProcessHeap(),0,this);
36 static HRESULT WINAPI
IEnumIDList_Next(
37 LPENUMIDLIST
this,ULONG celt
,LPITEMIDLIST
*rgelt
,ULONG
*pceltFetched
39 fprintf(stderr
,"IEnumIDList(%p)->Next(%ld,%p,%p),stub!\n",
40 this,celt
,rgelt
,pceltFetched
42 *pceltFetched
= 0; /* we don't have any ... */
46 static IEnumIDList_VTable eidlvt
= {
56 LPENUMIDLIST
IEnumIDList_Constructor() {
59 lpeidl
= (LPENUMIDLIST
)HeapAlloc(GetProcessHeap(),0,sizeof(IEnumIDList
));
61 lpeidl
->lpvtbl
= &eidlvt
;
65 /******************************************************************************
66 * IShellFolder implementation
68 static ULONG WINAPI
IShellFolder_Release(LPSHELLFOLDER
this) {
69 fprintf(stderr
,"IShellFolder(%p)->Release()\n",this);
71 fprintf(stderr
," -> freeing IShellFolder(%p)\n",this);
72 HeapFree(GetProcessHeap(),0,this);
78 static ULONG WINAPI
IShellFolder_AddRef(LPSHELLFOLDER
this) {
79 fprintf(stderr
,"IShellFolder(%p)->AddRef()\n",this);
83 static HRESULT WINAPI
IShellFolder_GetAttributesOf(
84 LPSHELLFOLDER
this,UINT32 cidl
,LPCITEMIDLIST
*apidl
,DWORD
*rgfInOut
86 fprintf(stderr
,"IShellFolder(%p)->GetAttributesOf(%d,%p,%p),stub!\n",
87 this,cidl
,apidl
,rgfInOut
92 static HRESULT WINAPI
IShellFolder_BindToObject(
93 LPSHELLFOLDER
this,LPCITEMIDLIST pidl
,LPBC pbcReserved
,REFIID riid
,LPVOID
* ppvOut
97 WINE_StringFromCLSID(riid
,xclsid
);
98 fprintf(stderr
,"IShellFolder(%p)->BindToObject(%p,%p,%s,%p),stub!\n",
99 this,pidl
,pbcReserved
,xclsid
,ppvOut
101 *ppvOut
= IShellFolder_Constructor();
105 static HRESULT WINAPI
IShellFolder_ParseDisplayName(
106 LPSHELLFOLDER
this,HWND32 hwndOwner
,LPBC pbcReserved
,
107 LPOLESTR32 lpszDisplayName
,DWORD
*pchEaten
,LPITEMIDLIST
*ppidl
,
110 fprintf(stderr
,"IShellFolder(%p)->ParseDisplayName(%08x,%p,%p,%p,%p,%p),stub!\n",
111 this,hwndOwner
,pbcReserved
,lpszDisplayName
,pchEaten
,ppidl
,pdwAttributes
113 *(DWORD
*)pbcReserved
= 0;
117 static HRESULT WINAPI
IShellFolder_EnumObjects(
118 LPSHELLFOLDER
this,HWND32 hwndOwner
,DWORD grfFlags
,
119 LPENUMIDLIST
* ppenumIDList
121 fprintf(stderr
,"IShellFolder(%p)->EnumObjects(0x%04x,0x%08lx,%p),stub!\n",
122 this,hwndOwner
,grfFlags
,ppenumIDList
124 *ppenumIDList
= IEnumIDList_Constructor();
128 static HRESULT WINAPI
IShellFolder_CreateViewObject(
129 LPSHELLFOLDER
this,HWND32 hwndOwner
,REFIID riid
,LPVOID
*ppv
133 WINE_StringFromCLSID(riid
,xclsid
);
134 fprintf(stderr
,"IShellFolder(%p)->CreateViewObject(0x%04x,%s,%p),stub!\n",
135 this,hwndOwner
,xclsid
,ppv
142 static struct IShellFolder_VTable sfvt
= {
145 IShellFolder_Release
,
146 IShellFolder_ParseDisplayName
,
147 IShellFolder_EnumObjects
,
148 IShellFolder_BindToObject
,
151 IShellFolder_CreateViewObject
,
152 IShellFolder_GetAttributesOf
,
158 LPSHELLFOLDER
IShellFolder_Constructor() {
161 sf
= (LPSHELLFOLDER
)HeapAlloc(GetProcessHeap(),0,sizeof(IShellFolder
));
167 static struct IShellLink_VTable slvt
= {
191 LPSHELLLINK
IShellLink_Constructor() {
194 sl
= (LPSHELLLINK
)HeapAlloc(GetProcessHeap(),0,sizeof(IShellLink
));