Track Protection

"Bibabutzemann" <[email protected]> Sun, 25 May 2003 11:12:04 +0200
Newsgroups gmane.comp.audio.netmd.devel
Message-ID <[email protected]>
Hi,

I found something interresting in the NetMD.dll :

The function GetTrackInfo of IID_IOmgPmTrackList can access a variable
m_rights.

The value of m_rights is 10 for unprotected Tracks and 3 for protected
Tracks. Maybe changing this value is a possibility to remove the
trackprotection.

reading this value is not too difficult:

IID_IOmgPmTrackList *tracklist;
_OPD_TRACKINFO *myOpdTrackInfo;
tracklist->GetTrackInfo(i,&myOpdTrackInfo);
right=myOpdTrackInfo->m_Rights;

but I don't know how to change this value. I tried something like:

_OPD_TRACKINFO *putinfo;
putinfo->m_rights=10;
tracklist->PutTrackInfo(i,putinfo);

but it causes an AccessViolation and changes the Tracknames of my MD. Maybe
someone has a solution for that problem.