Commit 05ed8318 authored by Jactry Zeng's avatar Jactry Zeng Committed by Alexandre Julliard

devenum: Implement IMoniker::GetClassID().

parent b0a35bbc
......@@ -355,12 +355,14 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_GetClassID(IMoniker *iface, CLSID
{
MediaCatMoniker *This = impl_from_IMoniker(iface);
FIXME("(%p)->(%p): stub\n", This, pClassID);
TRACE("(%p)->(%p)\n", This, pClassID);
if (pClassID == NULL)
return E_POINTER;
return E_INVALIDARG;
return E_NOTIMPL;
*pClassID = CLSID_CDeviceMoniker;
return S_OK;
}
static HRESULT WINAPI DEVENUM_IMediaCatMoniker_IsDirty(IMoniker *iface)
......
......@@ -79,6 +79,15 @@ static void test_devenum(IBindCtx *bind_ctx)
IPropertyBag* prop_bag = NULL;
VARIANT var;
HRESULT hr;
CLSID clsid = {0};
hr = IMoniker_GetClassID(moniker, NULL);
ok(hr == E_INVALIDARG, "IMoniker_GetClassID should failed %x\n", hr);
hr = IMoniker_GetClassID(moniker, &clsid);
ok(hr == S_OK, "IMoniker_GetClassID failed with error %x\n", hr);
ok(IsEqualGUID(&clsid, &CLSID_CDeviceMoniker),
"Expected CLSID_CDeviceMoniker got %s\n", wine_dbgstr_guid(&clsid));
VariantInit(&var);
hr = IMoniker_BindToStorage(moniker, bind_ctx, NULL, &IID_IPropertyBag, (LPVOID*)&prop_bag);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment