shell32: Add definitions for the IEnumACString interface.

Enable the corresponding browseui:autocomplete tests.
This commit is contained in:
Francois Gouget 2011-09-27 00:17:45 +02:00 committed by Alexandre Julliard
parent 9fbd18cc34
commit cd88a0f32c
2 changed files with 33 additions and 5 deletions

View File

@ -23,6 +23,7 @@
#include <initguid.h>
#include <windows.h>
#include <shlobj.h>
#include <shldisp.h>
#include <shlwapi.h>
#include <shlguid.h>
@ -127,10 +128,8 @@ static HRESULT STDMETHODCALLTYPE TestACL_QueryInterface(IEnumString *iface, REFI
return S_OK;
}
#if 0 /* IID_IEnumACString not defined yet in wine */
if (!IsEqualGUID(iid, &IID_IEnumACString))
trace("unknown interface queried\n");
#endif
return E_NOINTERFACE;
}
@ -239,6 +238,7 @@ static void test_ACLMulti(void)
const char *strings2[] = {"a", "b", "d"};
WCHAR exp[] = {'A','B','C',0};
IEnumString *obj;
IEnumACString *unk;
TestACL *acl1, *acl2;
IACList *acl;
IObjMgr *mgr;
@ -252,11 +252,10 @@ static void test_ACLMulti(void)
ok(obj->lpVtbl->QueryInterface(obj, &IID_IACList2, &tmp) == E_NOINTERFACE,
"Unexpected interface IACList2 in ACLMulti\n");
stop_on_error(obj->lpVtbl->QueryInterface(obj, &IID_IObjMgr, (LPVOID *)&mgr));
#if 0 /* IID_IEnumACString not defined yet in wine */
ole_ok(obj->lpVtbl->QueryInterface(obj, &IID_IEnumACString, &unk));
todo_wine ole_ok(obj->lpVtbl->QueryInterface(obj, &IID_IEnumACString, (LPVOID*)&unk));
if (unk != NULL)
unk->lpVtbl->Release(unk);
#endif
ok(obj->lpVtbl->Next(obj, 1, (LPOLESTR *)&tmp, &i) == S_FALSE, "Unexpected return from Next\n");
ok(i == 0, "Unexpected fetched value %d\n", i);

View File

@ -27,6 +27,35 @@ import "comcat.idl";
#include <shdispid.h>
/*****************************************************************************
* IEnumACString interface
*/
[
local,
object,
uuid(8e74c210-cf9d-4eaf-a403-7356428f0a5a),
pointer_default(unique)
]
interface IEnumACString : IEnumString
{
typedef IEnumACString *PENUMACSTRING, *LPENUMACSTRING;
typedef enum _tagACENUMOPTION
{
ACEO_NONE = 0x00000000,
ACEO_MOSTRECENTFIRST = 0x00000001,
ACEO_FIRSTUNUSED = 0x00010000,
} ACENUMOPTION;
HRESULT NextItem( [out] LPWSTR pszUrl,
[in] ULONG cchMax,
[out] ULONG *pulSortIndex);
HRESULT SetEnumOptions( [in] DWORD dwOptions );
HRESULT GetEnumOptions( [out] DWORD *pdwOptions );
}
/*****************************************************************************
* IAutoComplete interface
*/