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.

230 lines
7.2 KiB

  1. #include <windows.h>
  2. #include "resource.h"
  3. #include "dpnbuild.h"
  4. #ifdef WINCE
  5. #include "winver.h"
  6. //#else // !WINCE
  7. //#include "winres.h"
  8. #endif // WINCE
  9. #define IDC_STATIC -1
  10. /////////////////////////////////////////////////////////////////////////////
  11. // English (U.S.) resources
  12. #ifdef _WIN32
  13. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  14. #pragma code_page(1252)
  15. #endif //_WIN32
  16. #ifndef _MAC
  17. /////////////////////////////////////////////////////////////////////////////
  18. //
  19. // Version
  20. //
  21. #ifdef WIN95
  22. #include "verinfo.h"
  23. #if !defined(DBG) || !defined( DIRECTX_REDIST )
  24. #define VERSIONNAME "dpnet.dll\0"
  25. #else
  26. // For redist debug builds we append a 'd' to the name to allow both debug and retail to be installed on the system
  27. #define VERSIONNAME "dpnetd.dll\0"
  28. #endif // !defined(DBG) || !defined( DIRECTX_REDIST )
  29. #ifdef DBG
  30. #define VERSIONDESCRIPTION "Microsoft DirectPlay8 Debug\0"
  31. #else
  32. #define VERSIONDESCRIPTION "Microsoft DirectPlay8\0"
  33. #endif // DBG
  34. #define VERSIONTYPE VFT_DLL
  35. #define VERSIONSUBTYPE VFT2_UNKNOWN
  36. #include "verinfo.ver"
  37. #elif defined(WINCE)
  38. #include "verinfo.h"
  39. #define VERSIONNAME "dpnet.dll\0"
  40. #ifdef DBG
  41. #define VERSIONDESCRIPTION "Microsoft DirectPlay8 Debug\0"
  42. #else
  43. #define VERSIONDESCRIPTION "Microsoft DirectPlay8\0"
  44. #endif // DBG
  45. #undef VERSIONPRODUCTNAME
  46. #define VERSIONPRODUCTNAME "Microsoft\256 DirectPlay for Windows\256 CE\0"
  47. #define VERSIONTYPE VFT_DLL
  48. #define VERSIONSUBTYPE VFT2_UNKNOWN
  49. #include "verinfo.ver"
  50. #else // !WIN95 && !WINCE
  51. #include <ntverp.h>
  52. #define VER_FILETYPE VFT_DLL
  53. #define VER_FILESUBTYPE VFT2_UNKNOWN
  54. #define VER_FILEDESCRIPTION_STR "Microsoft DirectPlay"
  55. #if !defined(DBG) || !defined( DIRECTX_REDIST )
  56. #define VER_INTERNALNAME_STR "dpnet.dll"
  57. #else
  58. // For redist debug builds we append a 'd' to the name to allow both debug and retail to be installed on the system
  59. #define VER_INTERNALNAME_STR "dpnetd.dll"
  60. #endif // !defined(DBG) || !defined( DIRECTX_REDIST )
  61. #include "common.ver"
  62. #endif // WIN95
  63. #endif // !_MAC
  64. /////////////////////////////////////////////////////////////////////////////
  65. //
  66. // Dialog
  67. //
  68. #ifndef DPNBUILD_NOSPUI
  69. IDD_IP_SETTINGS DIALOG DISCARDABLE 0, 0, 194, 66
  70. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION |
  71. WS_SYSMENU
  72. CAPTION "Enter host name"
  73. FONT 8, "MS Shell Dlg"
  74. BEGIN
  75. LTEXT "Enter the remote machine address:",
  76. IDC_STATIC,7,7,110,8
  77. EDITTEXT IDC_EDIT_IP_HOSTNAME,7,45,180,14,ES_AUTOHSCROLL
  78. DEFPUSHBUTTON "OK",IDOK,137,7,50,14
  79. PUSHBUTTON "Cancel",IDCANCEL,137,24,50,14
  80. END
  81. #ifndef DPNBUILD_NOSERIALSP
  82. IDD_SERIAL_SETTINGS DIALOG DISCARDABLE 0, 0, 220, 134
  83. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION |
  84. WS_SYSMENU
  85. CAPTION "Serial Settings"
  86. FONT 8, "MS Shell Dlg"
  87. BEGIN
  88. DEFPUSHBUTTON "OK",IDOK,163,7,50,14
  89. PUSHBUTTON "Cancel",IDCANCEL,163,25,50,14
  90. LTEXT "Device",IDC_STATIC,17,25,49,8
  91. COMBOBOX IDC_COMBO_SERIAL_DEVICE,66,25,76,46,CBS_DROPDOWNLIST |
  92. CBS_SORT | WS_VSCROLL | WS_TABSTOP
  93. LTEXT "Baud",IDC_STATIC,17,45,49,8
  94. COMBOBOX IDC_COMBO_SERIAL_BAUDRATE,66,45,76,40,CBS_DROPDOWNLIST |
  95. WS_VSCROLL | WS_TABSTOP
  96. LTEXT "Stop Bits",IDC_STATIC,17,65,49,8
  97. COMBOBOX IDC_COMBO_SERIAL_STOPBITS,66,65,76,40,CBS_DROPDOWNLIST |
  98. WS_VSCROLL | WS_TABSTOP
  99. LTEXT "Parity",IDC_STATIC,17,85,49,8
  100. COMBOBOX IDC_COMBO_SERIAL_PARITY,66,85,76,43,CBS_DROPDOWNLIST |
  101. WS_VSCROLL | WS_TABSTOP
  102. LTEXT "Flow Control",IDC_STATIC,17,105,49,8
  103. COMBOBOX IDC_COMBO_SERIAL_FLOWCONTROL,66,105,76,44,
  104. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  105. GROUPBOX "Serial Port Settings",IDC_STATIC,7,
  106. 7,146,119
  107. END
  108. IDD_OUTGOING_MODEM_SETTINGS DIALOG DISCARDABLE 0, 0, 244, 71
  109. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  110. CAPTION "Modem Settings"
  111. FONT 8, "MS Shell Dlg"
  112. BEGIN
  113. LTEXT "Phone Number:",IDC_STATIC,7,7,50,8
  114. EDITTEXT IDC_EDIT_MODEM_PHONE_NUMBER,7,19,168,14,ES_AUTOHSCROLL
  115. LTEXT "Modem:",IDC_STATIC,7,38,29,8
  116. COMBOBOX IDC_COMBO_OUTGOING_MODEM_DEVICE,7,50,168,43,CBS_DROPDOWNLIST |
  117. CBS_SORT | WS_VSCROLL | WS_TABSTOP
  118. DEFPUSHBUTTON "OK",IDOK,187,7,50,14
  119. PUSHBUTTON "Cancel",IDCANCEL,187,24,50,14
  120. PUSHBUTTON "Configure",IDC_BUTTON_MODEM_CONFIGURE,187,50,50,14
  121. END
  122. IDD_INCOMING_MODEM_SETTINGS DIALOG DISCARDABLE 0, 0, 244, 71
  123. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  124. CAPTION "Modem Settings"
  125. FONT 8, "MS Shell Dlg"
  126. BEGIN
  127. DEFPUSHBUTTON "OK",IDOK,187,7,50,14
  128. PUSHBUTTON "Cancel",IDCANCEL,187,24,50,14
  129. COMBOBOX IDC_COMBO_INCOMING_MODEM_DEVICE,7,30,168,43,CBS_DROPDOWNLIST |
  130. CBS_SORT | WS_VSCROLL | WS_TABSTOP
  131. PUSHBUTTON "Configure",IDC_BUTTON_MODEM_CONFIGURE,187,50,50,14
  132. LTEXT "Modem:",IDC_STATIC,7,18,29,8
  133. END
  134. IDD_MODEM_STATUS DIALOG DISCARDABLE 0, 0, 324, 63
  135. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  136. CAPTION "Modem Status"
  137. FONT 8, "MS Shell Dlg"
  138. BEGIN
  139. DEFPUSHBUTTON "OK",IDOK,267,7,50,14
  140. PUSHBUTTON "Cancel",IDCANCEL,267,24,50,14
  141. LTEXT "Modem Status:",IDC_STATIC,7,24,240,8
  142. END
  143. #endif // !DPNBUILD_NOSERIALSP
  144. #endif // !DPNBUILD_NOSPUI
  145. /////////////////////////////////////////////////////////////////////////////
  146. //
  147. // String Table
  148. //
  149. STRINGTABLE DISCARDABLE
  150. BEGIN
  151. #ifndef DPNBUILD_NOIPX
  152. IDS_FRIENDLYNAME_IPX "DirectPlay8 IPX Service Provider"
  153. #endif // DPNBUILD_NOIPX
  154. IDS_FRIENDLYNAME_TCPIP "DirectPlay8 TCP/IP Service Provider"
  155. END
  156. #ifndef DPNBUILD_NOSERIALSP
  157. STRINGTABLE DISCARDABLE
  158. BEGIN
  159. IDS_BAUD_9600 "9600"
  160. IDS_BAUD_14400 "14400"
  161. IDS_BAUD_19200 "19200"
  162. IDS_BAUD_38400 "38400"
  163. IDS_BAUD_56000 "56000"
  164. IDS_BAUD_57600 "57600"
  165. IDS_BAUD_115200 "115200"
  166. END
  167. STRINGTABLE DISCARDABLE
  168. BEGIN
  169. IDS_STOPBITS_ONE "1"
  170. IDS_STOPBITS_ONE5 "1.5"
  171. IDS_STOPBITS_TWO "2"
  172. IDS_PARITY_NONE "None"
  173. IDS_PARITY_EVEN "Even"
  174. IDS_PARITY_ODD "Odd"
  175. IDS_PARITY_MARK "Mark"
  176. IDS_PARITY_SPACE "Space"
  177. IDS_FLOW_NONE "None"
  178. IDS_FLOW_XONXOFF "Xon/Xoff"
  179. IDS_FLOW_RTS "RTS"
  180. IDS_FLOW_DTR "DTR"
  181. IDS_FLOW_RTSDTR "RTS/DTR"
  182. IDS_FRIENDLYNAME_MODEM "DirectPlay8 Modem Service Provider"
  183. IDS_FRIENDLYNAME_SERIAL "DirectPlay8 Serial Service Provider"
  184. END
  185. #endif // !DPNBUILD_NOSERIALSP
  186. /////////////////////////////////////////////////////////////////////////////