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.

154 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1990-2003 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. localui.h
  6. // @@BEGIN_DDKSPLIT
  7. Abstract:
  8. Author:
  9. Environment:
  10. User Mode -Win32
  11. Revision History:
  12. // @@END_DDKSPLIT
  13. --*/
  14. #ifndef _LOCALUI_H_
  15. #define _LOCALUI_H_
  16. extern HANDLE hInst;
  17. extern DWORD PortInfo1Strings[];
  18. extern DWORD PortInfo2Strings[];
  19. extern PINIPORT pIniFirstPort;
  20. extern PINIXCVPORT pIniFirstXcvPort;
  21. extern WCHAR szPorts[];
  22. extern WCHAR szWindows[];
  23. extern WCHAR szINIKey_TransmissionRetryTimeout[];
  24. extern WCHAR szDeviceNameHeader[];
  25. extern WCHAR szFILE[];
  26. extern WCHAR szCOM[];
  27. extern WCHAR szLPT[];
  28. #define IDS_LOCALMONITOR 300
  29. #define IDS_INVALIDPORTNAME_S 301
  30. #define IDS_PORTALREADYEXISTS_S 302
  31. #define IDS_NOTHING_TO_CONFIGURE 303
  32. #define MSG_ERROR MB_OK | MB_ICONSTOP
  33. #define MSG_WARNING MB_OK | MB_ICONEXCLAMATION
  34. #define MSG_YESNO MB_YESNO | MB_ICONQUESTION
  35. #define MSG_INFORMATION MB_OK | MB_ICONINFORMATION
  36. #define MSG_CONFIRMATION MB_OKCANCEL | MB_ICONEXCLAMATION
  37. #define TIMEOUT_MIN 1
  38. #define TIMEOUT_MAX 999999
  39. #define TIMEOUT_STRING_MAX 6
  40. #define WITHINRANGE( val, lo, hi ) \
  41. ( ( val <= hi ) && ( val >= lo ) )
  42. #define IS_FILE_PORT(pName) \
  43. !_wcsicmp( pName, szFILE )
  44. #define IS_COM_PORT(pName) \
  45. IsCOMPort( pName )
  46. #define IS_LPT_PORT(pName) \
  47. IsLPTPort( pName )
  48. BOOL
  49. IsCOMPort(
  50. PCWSTR pPort
  51. );
  52. BOOL
  53. IsLPTPort(
  54. PCWSTR pPort
  55. );
  56. INT_PTR APIENTRY
  57. ConfigureLPTPortDlg(
  58. HWND hwnd,
  59. UINT msg,
  60. WPARAM wparam,
  61. LPARAM lparam
  62. );
  63. int
  64. Message(
  65. HWND hwnd,
  66. DWORD Type,
  67. int CaptionID,
  68. int TextID,
  69. ...
  70. );
  71. PINIXCVPORT
  72. CreateXcvPortEntry(
  73. DWORD dwMethod,
  74. LPCWSTR pszName
  75. );
  76. BOOL
  77. GetIniCommValues(
  78. LPWSTR pName,
  79. LPDCB pdcb,
  80. LPCOMMTIMEOUTS pcto
  81. );
  82. BOOL
  83. ConfigurePortUI(
  84. LPCWSTR pName,
  85. HWND hWnd,
  86. LPCWSTR pPortName
  87. );
  88. BOOL
  89. DeletePortUI(
  90. PCWSTR pszServer,
  91. HWND hWnd,
  92. PCWSTR pszPortName
  93. );
  94. INT_PTR CALLBACK
  95. PortNameDlg(
  96. HWND hwnd,
  97. WORD msg,
  98. WPARAM wparam,
  99. LPARAM lparam
  100. );
  101. PWSTR
  102. ConstructXcvName(
  103. PCWSTR pServerName,
  104. PCWSTR pObjectName,
  105. PCWSTR pObjectType
  106. );
  107. INT
  108. ErrorMessage(
  109. HWND hwnd,
  110. DWORD dwStatus
  111. );
  112. VOID cdecl DbgMsg( LPWSTR MsgFormat, ... );
  113. #endif // _LOCALUI_H_