Compartilhar via


WMRMKeys.GenerateSeed

banner art

Previous Next

WMRMKeys.GenerateSeed

The GenerateSeed method creates a random license key seed.

Syntax

  String
  
  =
  
  WMRMKeys
  .GenerateSeed()

Parameters

This method takes no parameters.

Return Values

If the method succeeds, it returns a String containing the license key seed. If it fails, it returns a number in the error object.

Return code Description
0x80004005 An unspecified error occurred.
0x80070057 The specified parameter is not valid.

Remarks

It is strongly recommended that you use this method to create license key seeds. The license key seed is a shared secret between the content packager and Windows Media License Service, and is a string of 40 random alpha-numeric characters. Because you can supply a seed that is different from the license key seed created by using this method, the GenerateSeed method is provided only for your convenience.

Important   Be careful with your license key seed. If you lose it, it cannot be recovered by Microsoft.

Example Code

  

Requirements

Version: Windows Media Rights Manager 7 SDK or later

Reference: wmrmobjs 1.0 Type Library

Library: wmrmobjs.dll

Platform: Windows Server 2003

See Also

Previous Next

© 2007 Microsoft Corporation. All rights reserved.