To Create a DRM-Enabled reader
- Link in the WMStubdrm.lib file in your project.
- Call the WMCreateReader interface to create the DRM reader.
- The first argument to the reader is an interface that contains the user’s certificate.
Note This argument must be set to NULL, as the WMStubDRM.lib contains the certificate.
- The second argument to the reader must be a valid WMT_RIGHTS enumeration type value.
- Instruct the reader to open the file by calling the Open method.
The following example shows how you can create a DRM-enabled reader.
IWMReader* pReader = NULL;
WMCreateReader(NULL, WMT_RIGHT_PLAYBACK, &pReader);
pReader->Open(pwszURL, &pMyCallback);
© 1999 Microsoft Corporation. All rights reserved.