WMRMChallenge.ActionCount
The ActionCount property retrieves the number of actions requested in a challenge.
Syntax
DWORD = WMRMChallenge.ActionCount
Parameters
This property takes no parameters.
Return Values
If the property succeeds, it returns a DWORD containing the number of requested actions. 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
This property is read-only. The current Windows Media Rights Manager recognizes only the Play action.
Example Code
' Declare variables and objects.
Dim dwActionCnt, lIndex
Dim ChallengeObj
Set ChallengeObj = Server.CreateObject("Wmrmobjs.WMRMChallenge")
' Retrieve the action requested by the client. In the current
' version of Windows Media Rights Manager, "Play" is the only
' reported action.
dwActionCnt = ChallengeObj.ActionCount
for lIndex = 0 to dwActionCnt-1
if (lIndex=0 And sAction(lIndex)<>"Play") Then
' The action is not permitted.
end if
if (lIndex>0) Then
' The action is not permitted.
end if
next
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