Share via


Windows Media Rights Manager SDK banner art

Predelivering a License By Using the GetSystemInfo Method

This scenario shows one way of predelivering a license by using the GetSystemInfo method. This method sends client information to Windows Media License Service to get a license.

The following .asp files are included in the Predelivering a License By Using the GetSystemInfo Method sample:

  • Package.asp. This page enables you to specify a Windows Media file to be packaged, and then select the type of license to be issued (which scenario to test).
  • PreDel2.asp. This page predelivers a version 10 license by using GetSystemInfo.
  • PreLicGen.asp. This page generates a version 10 license. The rights that are given are hard-coded in this page, but you can modify the code to allow different rights.
  • Confirm2.asp. This page confirms license delivery.

To test this sample

  1. Open Package.asp, then fill out the form by specifying the Windows Media file to be packaged, the output path and file name for the packaged Windows Media file, and select Predelivery for License acquisition URL. Click Package. Copy the value for Key ID.

    Note   Make sure the output folder allows Change permission to Everyone. Otherwise, an "Access is denied" message appears when you try to package files.

  2. Edit the Global.asa file, and replace the key ID in this file with the value you copied from Package.asp. Save the file.

  3. Stop and restart the World Wide Web Service (at the command prompt, type Net stop w3svc, and then type Net start w3svc).

  4. Open PreDel2.asp and initiate the license delivery by clicking Give me the license for the song.

  5. To test license delivery, play the packaged Windows Media file.

For information about predelivering licenses for Netscape 7.1 using these sample pages, see Predelivering Licenses for Netscape 7.1.

See Also