Commit 78110088 authored by Andrew Nguyen's avatar Andrew Nguyen Committed by Alexandre Julliard

propsys: Add a PSRefreshPropertySchema stub.

parent 6d098397
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
@ stub PSGetPropertyValue @ stub PSGetPropertyValue
@ stub PSLookupPropertyHandlerCLSID @ stub PSLookupPropertyHandlerCLSID
@ stdcall PSPropertyKeyFromString(wstr ptr) @ stdcall PSPropertyKeyFromString(wstr ptr)
@ stub PSRefreshPropertySchema @ stdcall PSRefreshPropertySchema()
@ stdcall PSRegisterPropertySchema(wstr) @ stdcall PSRegisterPropertySchema(wstr)
@ stub PSSetPropertyValue @ stub PSSetPropertyValue
@ stdcall PSStringFromPropertyKey(ptr ptr long) @ stdcall PSStringFromPropertyKey(ptr ptr long)
......
...@@ -72,6 +72,12 @@ HRESULT WINAPI PSGetPropertyDescription(REFPROPERTYKEY propkey, REFIID riid, voi ...@@ -72,6 +72,12 @@ HRESULT WINAPI PSGetPropertyDescription(REFPROPERTYKEY propkey, REFIID riid, voi
return E_NOTIMPL; return E_NOTIMPL;
} }
HRESULT WINAPI PSRefreshPropertySchema(void)
{
FIXME("\n");
return S_OK;
}
HRESULT WINAPI PSStringFromPropertyKey(REFPROPERTYKEY pkey, LPWSTR psz, UINT cch) HRESULT WINAPI PSStringFromPropertyKey(REFPROPERTYKEY pkey, LPWSTR psz, UINT cch)
{ {
static const WCHAR guid_fmtW[] = {'{','%','0','8','X','-','%','0','4','X','-', static const WCHAR guid_fmtW[] = {'{','%','0','8','X','-','%','0','4','X','-',
......
...@@ -432,8 +432,27 @@ static void test_PSPropertyKeyFromString(void) ...@@ -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) START_TEST(propsys)
{ {
test_PSStringFromPropertyKey(); test_PSStringFromPropertyKey();
test_PSPropertyKeyFromString(); test_PSPropertyKeyFromString();
test_PSRefreshPropertySchema();
} }
...@@ -802,6 +802,7 @@ cpp_quote("#define PKEYSTR_MAX (GUIDSTRING_MAX + 1 + PKEY_PIDSTR_MAX)") ...@@ -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 PSStringFromPropertyKey(REFPROPERTYKEY,LPWSTR,UINT);")
cpp_quote("HRESULT WINAPI PSPropertyKeyFromString(LPCWSTR,PROPERTYKEY*);") cpp_quote("HRESULT WINAPI PSPropertyKeyFromString(LPCWSTR,PROPERTYKEY*);")
cpp_quote("HRESULT WINAPI PSGetPropertyDescription(REFPROPERTYKEY,REFIID,void **);") cpp_quote("HRESULT WINAPI PSGetPropertyDescription(REFPROPERTYKEY,REFIID,void **);")
cpp_quote("HRESULT WINAPI PSRefreshPropertySchema(void);")
/* TODO: Add remainder of the C api here */ /* TODO: Add remainder of the C api here */
......
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