WMS Scripting: Active Script Event Handler

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Rudi (tech_at_wildcash.com)
Date: 02/08/05


Date: Mon, 7 Feb 2005 20:15:02 -0800

Hi,

When using Active Script Event Handlers how can I deny a mms:// request ?

I have the handler script been called OK and now just need to be
able to deny a media request.

Here is a similar sub and function that both do not deny a mms:// request.

Can you see where I am going wrong?
Can you please tell me how to return a value that will deny the request?

Example code:

Sub OnWMSEPlay( HR, UserCtx, PresCtx, CmdCtx )

tempStr = "OnWMSEPlay " & "xxxxHRESULT:" & hr & " " & Now
PrintContextInformation tempStr, UserCtx, PresCtx, CmdCtx
TraceInformation( tempStr )

OnWMSEPlay = &H80070005
'OnWMSEPlay = &H00000000

End sub

Function OnWMSEPlay( HR, UserCtx, PresCtx, CmdCtx )

tempStr = "OnWMSEPlay " & "xxxxHRESULT:" & hr & " " & Now
PrintContextInformation tempStr, UserCtx, PresCtx, CmdCtx
TraceInformation( tempStr )
OnWMSEPlay = &H80070005
'OnWMSEPlay = &H00000000

End function

Many thanks,
Kind regards
Rudi



Relevant Pages