Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

  1. <%@ LANGUAGE="VBSCRIPT" %>
  2. <HTML>
  3. <HEAD>
  4. <META NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
  5. <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
  6. <TITLE>MSMQ Asp Sample Open Queue Page - 2</TITLE>
  7. </HEAD>
  8. <BODY>
  9. <H1>MSMQ Asp Sample Open Queue Page - 2</H1>
  10. <A HREF="Default.asp">[Home]</A>
  11. <H2>Opening Queue : <%= Request.QueryString ( "QueuePath" )%><br>
  12. <% Set msmqinfo=CreateObject ( "MSMQ.MSMQQueueInfo" )
  13. msmqinfo.PathName=Request.QueryString ( "QueuePath" )
  14. on error resume next
  15. Set Session ( "SendQueue" ) = msmqinfo.Open ( 2, 0 )
  16. if err.number <> 0 then
  17. response.write "<font color=""#FF0000"">Error</font> 0x" & Hex(Err.Number) & " - " & Err.Description & "<br><br>"
  18. else
  19. on error resume next
  20. Set Session ( "RecvQueue" ) = msmqinfo.Open ( 1, 0 )
  21. if err.number <> 0 then
  22. response.write "<font color=""#FF0000"">Error</font> 0x" & Hex(Err.Number) & " - " & Err.Description & "<br><br>"
  23. else
  24. dim var
  25. var = Request.QueryString ( "QueuePath" )
  26. Session ( "qname" ) = Right ( var, Len ( var ) - Instr ( var, "\" ))
  27. Session ( "mname" ) = Left ( var, Instr ( var, "\" ) - 1)
  28. response.write "Queue created.<br><br>"
  29. end if
  30. end if
  31. set msmqinfo=Nothing
  32. %>
  33. </H2>
  34. </BODY>
  35. </HTML>