propsys: Add a PSRefreshPropertySchema stub.

This commit is contained in:
Andrew Nguyen 2011-02-15 12:36:28 -06:00 committed by Alexandre Julliard
parent 6d0983972e
commit 78110088d4
4 changed files with 27 additions and 1 deletions

View File

@ -88,7 +88,7 @@
@ stub PSGetPropertyValue
@ stub PSLookupPropertyHandlerCLSID
@ stdcall PSPropertyKeyFromString(wstr ptr)
@ stub PSRefreshPropertySchema
@ stdcall PSRefreshPropertySchema()
@ stdcall PSRegisterPropertySchema(wstr)
@ stub PSSetPropertyValue
@ stdcall PSStringFromPropertyKey(ptr ptr long)

View File

@ -72,6 +72,12 @@ HRESULT WINAPI PSGetPropertyDescription(REFPROPERTYKEY propkey, REFIID riid, voi
return E_NOTIMPL;
}
HRESULT WINAPI PSRefreshPropertySchema(void)
{
FIXME("\n");
return S_OK;
}
HRESULT WINAPI PSStringFromPropertyKey(REFPROPERTYKEY pkey, LPWSTR psz, UINT cch)
{
static const WCHAR guid_fmtW[] = {'{','%','0','8','X','-','%','0','4','X','-',

View File

@ -432,8 +432,27 @@ static void test_PSPropertyKeyFromString(void)
}
}
static void test_PSRefreshPropertySchema(void)
{
HRESULT ret;
ret = PSRefreshPropertySchema();
todo_wine
ok(ret == CO_E_NOTINITIALIZED,
"Expected PSRefreshPropertySchema to return CO_E_NOTINITIALIZED, got 0x%08x\n", ret);
CoInitialize(NULL);
ret = PSRefreshPropertySchema();
ok(ret == S_OK,
"Expected PSRefreshPropertySchema to return S_OK, got 0x%08x\n", ret);
CoUninitialize();
}
START_TEST(propsys)
{
test_PSStringFromPropertyKey();
test_PSPropertyKeyFromString();
test_PSRefreshPropertySchema();
}

View File

@ -802,6 +802,7 @@ cpp_quote("#define PKEYSTR_MAX (GUIDSTRING_MAX + 1 + PKEY_PIDSTR_MAX)")
cpp_quote("HRESULT WINAPI PSStringFromPropertyKey(REFPROPERTYKEY,LPWSTR,UINT);")
cpp_quote("HRESULT WINAPI PSPropertyKeyFromString(LPCWSTR,PROPERTYKEY*);")
cpp_quote("HRESULT WINAPI PSGetPropertyDescription(REFPROPERTYKEY,REFIID,void **);")
cpp_quote("HRESULT WINAPI PSRefreshPropertySchema(void);")
/* TODO: Add remainder of the C api here */