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.
Example Code
' Declare variables and objects.
Dim sSeed
Dim KeysObj
' Create objects.
Set KeysObj = Server.CreateObject("Wmrmobjs.WMRMKeys")
' Create the license key seed and store it securely.
sSeed = KeysObj.GenerateSeed()
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