thrantir
Joined: 15 Feb 2006
Posts: 1
|
Posted:
Wed Feb 15, 2006 2:23 pm Post subject:
GetDRMProperty returns me an error |
|
|
Hi
this is my first post, so hi to all, and sorry for my bad english, im'italian
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
|
|