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.

50 lines
1.4 KiB

  1. /*****************************************************************************
  2. *
  3. * $Workfile: TCPMonUI.h $
  4. *
  5. * Copyright (C) 1997 Hewlett-Packard Company.
  6. * All rights reserved.
  7. *
  8. * 11311 Chinden Blvd.
  9. * Boise, Idaho 83714
  10. *
  11. *****************************************************************************/
  12. //
  13. // defines
  14. //
  15. // MAX_ADDRESS_LENGTH should be set to max(MAX_FULLY_QUALIFIED_HOSTNAME_LEN-1, MAX_IPADDR_STR_LEN-1);
  16. #define MAX_ADDRESS_LENGTH MAX_NETWORKNAME_LEN
  17. #define MAX_PORTNUM_STRING_LENGTH 6+1
  18. #define MAX_SNMP_DEVICENUM_STRING_LENGTH 128+1
  19. //
  20. // function prototypes
  21. //
  22. void DisplayErrorMessage(HWND hDlg, UINT uErrorTitleResource, UINT uErrorStringResource);
  23. void DisplayErrorMessage(HWND hDlg, DWORD dwLastError);
  24. BOOL OnHelp(UINT iDlgID, HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  25. //
  26. // typedef's
  27. //
  28. typedef BOOL (* XCVDATAPARAM)(HANDLE, PCWSTR, PBYTE, DWORD, PBYTE, DWORD, PDWORD, PDWORD);
  29. typedef DWORD (* UIEXPARAM)(PPORT_DATA_1);
  30. //
  31. // exported functions
  32. //
  33. BOOL APIENTRY DllMain(HANDLE hInst, DWORD dwReason, LPVOID lpReserved);
  34. PMONITORUI WINAPI InitializePrintMonitorUI(VOID);
  35. extern "C" BOOL WINAPI LocalAddPortUI(HWND hWnd);
  36. extern "C" BOOL WINAPI LocalConfigurePortUI(HWND hWnd, PORT_DATA_1 *pConfigPortData);
  37. //
  38. // Global Variables
  39. //
  40. extern HINSTANCE g_hWinSpoolLib;
  41. extern HINSTANCE g_hPortMonLib;
  42. extern HINSTANCE g_hTcpMibLib;