Windows Media Format SDK banner art
PreviousNext

To Create a DRM-Enabled Writer

  1. Link in the Wmstubdrm.lib file in your project.

  2. Call the WMCreateWriter interface to create the DRM writer.

  3. The first argument to the reader is an interface that contains the user’s certificate. 

    Note   This argument must be set to null, as WMStubDRM.lib contains the certificate.

The following example shows how you can create a DRM-enabled writer.

IWMWriter*    pWriter = NULL;
WMCreateWriter(NULL, &pWriter);
PreviousNext


© 1999 Microsoft Corporation. All rights reserved.