WMRMLicenseRevocationAcknowledger.GetTransactionId

banner art

Previous Next

WMRMLicenseRevocationAcknowledger.GetTransactionId

The GetTransactionId method retrieves the transaction ID from the acknowledgement string.

Syntax

  String = WMRMLicenseRevocationAcknowledger
  .GetTransactionId

Parameters

This method takes no parameters.

Return Values

If the method succeeds, it returns a String containing the transaction ID. If it fails, it returns a number in the error object.

Remarks

The transaction ID is generated by the DRM component on the client computer at the beginning of the license revocation process.

Example Code

'"""""""""""""""""""""""""""""""""""""""""""""""""""""
' Declare variables.
'"""""""""""""""""""""""""""""""""""""""""""""""""""""
Dim LRAcknowledgeObj     ' WMRMLicenseRevocationAcknowledger object
Dim LRAckString          ' License revocation acknowledgement string
Dim AckTransID           ' Transaction ID in the acknowledgement string
Dim ClientPubkey         ' Public key of the client computer

'"""""""""""""""""""""""""""""""""""""""""""""""""""""
' Process the license revocation acknowledgement.
'"""""""""""""""""""""""""""""""""""""""""""""""""""""
LRAckString = "<Replace this with the license license revocation acknowledgement string>"
Set LRAcknowledgeObj = Server.CreateObject("WMRMObjs.WMRMLicenseRevocationAcknowledger")
LRAcknowledgeObj.Acknowledgement = LRAckString
AckTransID = LRAcknowledgeObj.GetTransactionId()

' Verify the signature on the string. This method fails if the signature is not valid.
' ClientPubkey was already retrieved from the license revocation challenge.
LRAcknowledgeObj.Verify(ClientPubkey)

Requirements

Version: Windows Media Rights Manager 10 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.