Leaked source code of windows server 2003
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.

59 lines
1.5 KiB

  1. <%@ CODEPAGE=65001 %>
  2. <%
  3. '------------------------------------------------------------
  4. '
  5. ' Microsoft Internet Printing Project
  6. '
  7. ' Copyright (c) Microsoft Corporation. All rights reserved.
  8. '
  9. '------------------------------------------------------------
  10. Option Explicit
  11. %>
  12. <!-- #include file = "ipp_util.inc" -->
  13. <%
  14. Response.Expires = 0
  15. Const L_TitlePrintError_Text = "Internet Printing Error"
  16. Const L_UnknownErr_Message = "An unknown error happened, please contact your administrator"
  17. %>
  18. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  19. <html lang=<%=L_Language%>>
  20. <head>
  21. <Meta Http-equiv="Content-Type" Content="text/html; CHARSET=UTF-8">
  22. <title><% =Write(L_TitlePrintError_Text) %></title>
  23. </head>
  24. <body>
  25. <%=Write(CLIENT_FONT)%><p>
  26. <%Const L_PrtFail_Text = "<H2>Printer Installation Failed</H2>"%>
  27. <%=Write(L_PrtFail_Text)%>
  28. </p>
  29. <font size=2>
  30. <%
  31. Dim iCode
  32. Dim strError
  33. iCode = Request("code")
  34. If iCode <> "" Or iCode <>"0" Then
  35. Dim objPrinter
  36. Set objPrinter = Server.CreateObject (PROGID_HELPER)
  37. On Error Resume Next
  38. Err.Clear
  39. strError = objPrinter.ErrorDscp (iCode)
  40. If Err.Number <> 0 Then
  41. Const L_ErrMsg_Text = "Error Code = %1"
  42. strError = RepString1(L_ErrMsg_Text,Hex (iCode))
  43. End If
  44. Else
  45. strError = L_UnknownErr_Message
  46. End If
  47. Response.Write (Write (strError))
  48. %>
  49. </font>
  50. <%=END_FONT%>
  51. </body>
  52. </html>