GetDRMProperty returns me an error
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
GetDRMProperty returns me an error

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> DRM
Author Message
thrantir



Joined: 15 Feb 2006
Posts: 1

Posted: Wed Feb 15, 2006 2:23 pm    Post subject: GetDRMProperty returns me an error Reply with quote

Hi

this is my first post, so hi to all, and sorry for my bad english, im'italian Wink

I have a problem with the GetDRMProperty method of the IWMDRMEditor interface.
I have initialized both my IWMMetadataEditor and IWMDRMEditor writing this:

myResult = WMCreateEditor(&myMetadataEditor);
if(FAILED(myResult))
return;
myResult = myMetadataEditor->QueryInterface(IID_IWMDRMEditor,(void**)&myDRMEditor);
if(FAILED(myResult))
return;

myResult is OK in both cases.

Then, I open my media file with

myResult = myMetadataEditor->Open(myContent);

again, myResult is OK

finally, I call

myResult = myDRMEditor->GetDRMProperty()

I've tried all possibile attribute, like g_wszWMDRM_ActionAllowed_Copy or g_wszWMDRM_DRMHeader_KeyID. It doesn't matter what attribute a try to watch, myResult is always -1072879769

Someone would tell me why?

Many Thanks

thrantir

Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> DRM All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB