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.

157 lines
8.7 KiB

  1. #include <windows.h>
  2. #include <commctrl.h>
  3. #include <ntverp.h>
  4. #include "resource.h"
  5. #define VER_FILETYPE VFT_APP
  6. #define VER_FILESUBTYPE VFT2_UNKNOWN
  7. #define VER_FILEDESCRIPTION_STR "FaxVrfy"
  8. #define VER_INTERNALNAME_STR "faxvrfy.exe"
  9. #define VER_ORIGINALFILENAME_STR "faxvrfy.exe"
  10. #include <common.ver>
  11. #include "faxvrfy.h"
  12. IDD_SETUP DIALOG DISCARDABLE 0, 0, 335, 227
  13. STYLE WS_CAPTION | WS_VISIBLE | WS_DLGFRAME | WS_SYSMENU | WS_MINIMIZEBOX
  14. CAPTION FAXVRFY_NAME
  15. CLASS FAXVRFY_NAME
  16. FONT FONTSIZE, FONTNAME
  17. {
  18. DEFPUSHBUTTON "S&tart", IDC_START_BUTTON, 5, 208, 50, 14, WS_GROUP
  19. PUSHBUTTON "S&top", IDC_STOP_BUTTON, 60, 208, 50, 14, WS_GROUP
  20. PUSHBUTTON "E&xit", IDC_EXIT_BUTTON, 280, 208, 50, 14, WS_GROUP
  21. GROUPBOX "Fax", -1, 5, 5, 160, 47
  22. LTEXT "&Send to:", IDC_SEND_NUMBER_STATIC, 10, 20, 40, 8
  23. EDITTEXT IDC_SEND_NUMBER, 55, 18, 105, 12, ES_AUTOHSCROLL
  24. LTEXT "&Receive on:", IDC_RECEIVE_NUMBER_STATIC, 10, 37, 40, 8
  25. EDITTEXT IDC_RECEIVE_NUMBER, 55, 35, 105, 12, ES_AUTOHSCROLL
  26. GROUPBOX "RAS", -1, 170, 5, 160, 77
  27. AUTOCHECKBOX "&Enabled", IDC_RAS_ENABLED_BUTTON, 175, 18, 40, 8, WS_GROUP
  28. LTEXT "&User Name:", IDC_RAS_USER_NAME_STATIC, 175, 33, 40, 8
  29. EDITTEXT IDC_RAS_USER_NAME, 220, 31, 105, 12, ES_AUTOHSCROLL
  30. LTEXT "&Password:", IDC_RAS_PASSWORD_STATIC, 175, 50, 40, 8
  31. EDITTEXT IDC_RAS_PASSWORD, 220, 48, 105, 12, ES_PASSWORD | ES_AUTOHSCROLL
  32. LTEXT "&Domain:", IDC_RAS_DOMAIN_STATIC, 175, 67, 40, 8
  33. EDITTEXT IDC_RAS_DOMAIN, 220, 65, 105, 12, ES_AUTOHSCROLL
  34. GROUPBOX "Status", -1, 5, 87, 325, 116
  35. GROUPBOX "Iterations", -1, 10, 100, 315, 26
  36. RTEXT "0", IDC_NUM_PASSED, 16, 113, 50, 8
  37. LTEXT " Passed", -1, 66, 113, 40, 8
  38. RTEXT "0", IDC_NUM_FAILED, 117, 113, 50, 8
  39. LTEXT " Failed", -1, 167, 113, 40, 8
  40. RTEXT "0", IDC_NUM_TOTAL, 218, 113, 50, 8
  41. LTEXT " Total", -1, 268, 113, 40, 8
  42. CONTROL "", IDC_STATUS_LIST, "SysListView32", LVS_NOSORTHEADER | LVS_REPORT | LVS_SHOWSELALWAYS | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 10, 133, 315, 65
  43. }
  44. IDR_MENU MENU DISCARDABLE
  45. {
  46. POPUP "&Options"
  47. {
  48. MENUITEM "&Send", IDM_SEND
  49. MENUITEM "&Receive", IDM_RECEIVE
  50. }
  51. POPUP "&Help"
  52. {
  53. MENUITEM "&Help", IDM_HELP
  54. }
  55. }
  56. STRINGTABLE DISCARDABLE
  57. {
  58. IDS_FAX_MONITOR_NOT_INSTALLED, "The Fax Printer Monitor is not installed."
  59. IDS_FAX_PORT_NOT_INSTALLED, "The Fax Printer Port is not installed."
  60. IDS_FAX_DRIVER_NOT_INSTALLED, "The Fax Printer Driver is not installed."
  61. IDS_FAX_PRINTER_NOT_INSTALLED, "The Fax Printer is not installed."
  62. IDS_COM_NOT_INITIALIZED, "Cannot initialize the COM library."
  63. IDS_FAXCOM_NOT_INSTALLED, "faxcom.dll is not registered."
  64. IDS_FAXADMIN_NOT_INSTALLED, "faxadmin.dll is not registered."
  65. IDS_ROUTEEXT_NOT_INSTALLED, "routeext.dll is not registered."
  66. IDS_FAX_SVC_NOT_INSTALLED, "The Fax Service is not installed."
  67. IDS_FAX_SVC_NOT_STOPPED, "Cannot stop the Fax Service."
  68. IDS_FAX_RCV_NOT_INITIALIZED, "Cannot initialize the FaxRcv Routing Extension."
  69. IDS_FAX_CONNECT_FAILED, "Cannot connect to the Fax Service."
  70. IDS_FAX_ENUM_PORTS_FAILED, "Cannot retrieve the Fax Ports Configuration."
  71. IDS_FAX_PORTS_NOT_INSTALLED, "There are no Fax Ports installed."
  72. IDS_FAX_SET_PORT_FAILED, "Cannot set the Fax Port Configuration for Fax Port: %s."
  73. IDS_FAX_RESTORE_PORT_FAILED, "Cannot restore the Fax Port Configuration for Fax Port: %s."
  74. IDS_OPEN_FAXDEVICES_REGKEY_FAILED, "Cannot open the Fax Devices Registry Key."
  75. IDS_FIXMODEMCLASS_DATA, "Fax Port ""%s"" is using Class %s Fax."
  76. IDS_FAX_GET_CONFIG_FAILED, "Cannot retrieve the Fax Service Configuration."
  77. IDS_FAX_SET_CONFIG_FAILED, "Cannot set the Fax Service Configuration."
  78. IDS_FAX_RESTORE_CONFIG_FAILED, "Cannot restore the Fax Service Configuration."
  79. IDS_FAX_EVENT_QUEUE_FAILED, "Cannot initialize the Fax Event Queue."
  80. IDS_EVENT_LABEL, "Event"
  81. IDS_PORT_LABEL, "Port"
  82. IDS_ASCII_SEND_NUMBER, "The ""Send to"" phone number may be only ASCII characters."
  83. IDS_ASCII_RECEIVE_NUMBER, "The ""Receive on"" phone number may be only ASCII characters."
  84. IDS_MISSING_INFO, "The following info is missing: \n\n"
  85. IDS_NO_SEND_NUMBER, " ""Send to"" phone number."
  86. IDS_NO_RECEIVE_NUMBER, " ""Receive on"" phone number."
  87. IDS_NO_RAS_USER_NAME, " ""User Name."""
  88. IDS_NO_RAS_DOMAIN, " ""Domain."""
  89. IDS_STATUS_ITERATION_STARTED, "Test Started"
  90. IDS_STATUS_ITERATION_STOPPED, "Test Stopped"
  91. IDS_STATUS_ITERATION_PASSED, "Test Iteration Passed"
  92. IDS_STATUS_ITERATION_FAILED, "Test Iteration Failed"
  93. IDS_STATUS_TEST_PASSED, "Test Passed"
  94. IDS_STATUS_TEST_FAILED, "Test Failed"
  95. IDS_STATUS_TIMEOUT_ENDED, "Timeout"
  96. IDS_STATUS_RAS_STARTING, "Starting a RAS Call: %s"
  97. IDS_STATUS_RAS_STOPPING, "Stopping the RAS Call"
  98. IDS_STATUS_RAS_FAILED, "RAS Failed: %s"
  99. IDS_STATUS_RAS_LINESPEED, "RAS Line Speed: %d"
  100. IDS_STATUS_RAS_PASSED, "RAS Passed"
  101. IDS_STATUS_RAS_SPEED_SUSPECT, "The line speed is suspect; it is less than %d"
  102. IDS_STATUS_FAX_STARTING, "Sending a Fax: %s"
  103. IDS_STATUS_FAX_STOPPING, "Stopping the Fax"
  104. IDS_STATUS_FAX_SEND_PASSED, "Fax Send Passed"
  105. IDS_STATUS_FAX_SEND_FAILED, "Fax Send Failed"
  106. IDS_STATUS_FAX_WAITING, "Waiting for a Fax..."
  107. IDS_STATUS_FAX_RECEIVED, "Fax Received: %s"
  108. IDS_STATUS_FAX_ID, "Fax Id: %s"
  109. IDS_STATUS_FAX_INVALID, "Invalid Fax: The Fax was not sent by the FaxVrfy application."
  110. IDS_STATUS_FAX_VERIFYING, "Verifying Fax: %s"
  111. IDS_TIFF_VALID_TIFF, "Valid Fax"
  112. IDS_TIFF_INVALID_TIFF, "Invalid Fax: The TIFF file is invalid"
  113. IDS_TIFF_INVALID_IMAGEWIDTH, "Invalid Fax: The ImageWidth TIFF Tag is invalid"
  114. IDS_TIFF_INVALID_IMAGELENGTH, "Invalid Fax: The ImageLength TIFF Tag is invalid"
  115. IDS_TIFF_INVALID_COMPRESSION, "Invalid Fax: The Compression TIFF Tag is invalid"
  116. IDS_TIFF_INVALID_PHOTOMETRIC, "Invalid Fax: The Photometric TIFF Tag is invalid"
  117. IDS_TIFF_INVALID_XRESOLUTION, "Invalid Fax: The XResolution TIFF Tag is invalid"
  118. IDS_TIFF_INVALID_YRESOLUTION, "Invalid Fax: The YResolution TIFF Tag is invalid"
  119. IDS_TIFF_INVALID_SOFTWARE, "Invalid Fax: The Software TIFF Tag is invalid"
  120. IDS_TIFF_INVALID_PAGES, "Invalid Fax: Missing Pages. Received %d pages, Expected %d pages."
  121. IDS_STATUS_RAS_DIALING, "Dialing"
  122. IDS_STATUS_RAS_AUTHENTICATING, "Authenticating"
  123. IDS_STATUS_RAS_CONNECTED, "Connected"
  124. IDS_STATUS_FAX_INITIALIZING, "Initializing"
  125. IDS_STATUS_FAX_DIALING, "Dialing, Attempt: %d"
  126. IDS_STATUS_FAX_NO_DIAL_TONE_ABORT, "No Dial Tone, Abort"
  127. IDS_STATUS_FAX_NO_DIAL_TONE_RETRY, "No Dial Tone, Retry"
  128. IDS_STATUS_FAX_BUSY_ABORT, "Busy, Abort"
  129. IDS_STATUS_FAX_BUSY_RETRY, "Busy, Retry"
  130. IDS_STATUS_FAX_NO_ANSWER_ABORT, "No Answer, Abort"
  131. IDS_STATUS_FAX_NO_ANSWER_RETRY, "No Answer, Retry"
  132. IDS_STATUS_FAX_RINGING, "Ringing"
  133. IDS_STATUS_FAX_ANSWERED, "Answered"
  134. IDS_STATUS_FAX_NOT_FAX_CALL, "Not a Fax Call"
  135. IDS_STATUS_FAX_SENDING, "Sending"
  136. IDS_STATUS_FAX_RECEIVING, "Receiving"
  137. IDS_STATUS_FAX_FATAL_ERROR_ABORT, "Fatal Error, Abort"
  138. IDS_STATUS_FAX_FATAL_ERROR_RETRY, "Fatal Error, Retry"
  139. IDS_STATUS_FAX_FATAL_ERROR, "Fatal Error"
  140. IDS_STATUS_FAX_ABORTING, "Aborting"
  141. IDS_STATUS_FAX_COMPLETED, "Completed"
  142. IDS_STATUS_FAX_IDLE, "Idle"
  143. IDS_STATUS_FAXSVC_ENDED, "Fax Service Stopped"
  144. IDS_STATUS_DEVICE_POWERED_OFF, "Device Powered Off"
  145. IDS_STATUS_DEVICE_POWERED_ON, "Device Powered On"
  146. IDS_STATUS_PORTS_NOT_AVAILABLE, "There are no Fax Ports available"
  147. IDS_STATUS_UNEXPECTED_STATE, "Unexpected State"
  148. IDS_NUM_PASSED, "Passed: %d\r\n"
  149. IDS_NUM_FAILED, "Failed: %d\r\n"
  150. IDS_NUM_TOTAL, "Total: %d\r\n"
  151. }