Commit f0dbd3ad authored by Vijay Kiran Kamuju's avatar Vijay Kiran Kamuju Committed by Alexandre Julliard

wmvcore: Add semi-stub implementation for WMIsContentProtected.

parent 639e9738
...@@ -338,6 +338,23 @@ static void test_urlextension(void) ...@@ -338,6 +338,23 @@ static void test_urlextension(void)
todo_wine ok(hr == S_OK, "WMCheckURLExtension failed 0x%08x\n", hr); todo_wine ok(hr == S_OK, "WMCheckURLExtension failed 0x%08x\n", hr);
} }
static void test_iscontentprotected(void)
{
HRESULT hr;
const WCHAR mp3file[] = {'t','e','s','t','.','m','p','3',0};
BOOL drm;
hr = WMIsContentProtected(NULL, NULL);
ok(hr == E_INVALIDARG, "WMIsContentProtected failed 0x%08x\n", hr);
hr = WMIsContentProtected(NULL, &drm);
ok(hr == E_INVALIDARG, "WMIsContentProtected failed 0x%08x\n", hr);
hr = WMIsContentProtected(mp3file, NULL);
ok(hr == E_INVALIDARG, "WMIsContentProtected failed 0x%08x\n", hr);
hr = WMIsContentProtected(mp3file, &drm);
ok(hr == S_FALSE, "WMIsContentProtected failed 0x%08x\n", hr);
ok(drm == FALSE, "got %0dx\n", drm);
}
START_TEST(wmvcore) START_TEST(wmvcore)
{ {
HRESULT hr; HRESULT hr;
...@@ -353,6 +370,7 @@ START_TEST(wmvcore) ...@@ -353,6 +370,7 @@ START_TEST(wmvcore)
test_profile_manager_interfaces(); test_profile_manager_interfaces();
test_WMCreateWriterPriv(); test_WMCreateWriterPriv();
test_urlextension(); test_urlextension();
test_iscontentprotected();
CoUninitialize(); CoUninitialize();
} }
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
@ stub WMCreateWriterNetworkSink @ stub WMCreateWriterNetworkSink
@ stdcall WMCreateWriterPriv(ptr) @ stdcall WMCreateWriterPriv(ptr)
@ stub WMCreateWriterPushSink @ stub WMCreateWriterPushSink
@ stub WMIsContentProtected @ stdcall WMIsContentProtected(wstr ptr)
...@@ -86,6 +86,18 @@ HRESULT WINAPI WMCreateBackupRestorer(IUnknown *callback, IWMLicenseBackup **lic ...@@ -86,6 +86,18 @@ HRESULT WINAPI WMCreateBackupRestorer(IUnknown *callback, IWMLicenseBackup **lic
return E_NOTIMPL; return E_NOTIMPL;
} }
HRESULT WINAPI WMIsContentProtected(const WCHAR *filename, BOOL *protected)
{
FIXME("(%s %p): semi-stub\n", wine_dbgstr_w(filename), protected);
if (!filename || !protected)
return E_INVALIDARG;
*protected = FALSE;
return S_FALSE;
}
typedef struct { typedef struct {
IWMProfileManager2 IWMProfileManager2_iface; IWMProfileManager2 IWMProfileManager2_iface;
LONG ref; LONG ref;
......
...@@ -1896,6 +1896,7 @@ cpp_quote("HRESULT WINAPI WMCreateSyncReader(IUnknown*,DWORD,IWMSyncReader**);") ...@@ -1896,6 +1896,7 @@ cpp_quote("HRESULT WINAPI WMCreateSyncReader(IUnknown*,DWORD,IWMSyncReader**);")
cpp_quote("HRESULT WINAPI WMCreateEditor(IWMMetadataEditor**);") cpp_quote("HRESULT WINAPI WMCreateEditor(IWMMetadataEditor**);")
cpp_quote("HRESULT WINAPI WMCreateBackupRestorer(IUnknown*,IWMLicenseBackup**);") cpp_quote("HRESULT WINAPI WMCreateBackupRestorer(IUnknown*,IWMLicenseBackup**);")
cpp_quote("HRESULT WINAPI WMCreateProfileManager(IWMProfileManager**);") cpp_quote("HRESULT WINAPI WMCreateProfileManager(IWMProfileManager**);")
cpp_quote("HRESULT WINAPI WMIsContentProtected(const WCHAR*, BOOL*);")
cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_Base, 0x00000000,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);") cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_Base, 0x00000000,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
......
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