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.

146 lines
3.5 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. dialogs.h
  7. This file contains the ID constants used by SFM Print Manager dialogs
  8. FILE HISTORY:
  9. NarenG 26-May-93 Created
  10. */
  11. #ifndef _DIALOGS_H_
  12. #define _DIALOGS_H_
  13. #include <uimsg.h> // For IDS_UI_RASMAC_BASE
  14. #include <uirsrc.h> // For IDRSRC_RASMAC_BASE
  15. #include <uihelp.h> // for HC_UI_RASMAC_BASE
  16. //
  17. // string ID's
  18. //
  19. #define IDS_MACPRINT_HELPFILENAME (IDS_UI_RASMAC_BASE+1)
  20. #define IDS_MUST_START_STACK (IDS_UI_RASMAC_BASE+2)
  21. #define IDS_NO_ZONE_FOR_PRINTERS (IDS_UI_RASMAC_BASE+3)
  22. #define IDS_GETTING_PRINTERS_ON_ZONE (IDS_UI_RASMAC_BASE+4)
  23. #define IDS_NO_ZONES (IDS_UI_RASMAC_BASE+5)
  24. #define IDS_NO_PRINTERS (IDS_UI_RASMAC_BASE+6)
  25. #define IDS_MUST_SELECT_PRINTER (IDS_UI_RASMAC_BASE+7)
  26. #define IDS_SPOOLER (IDS_UI_RASMAC_BASE+8)
  27. #define IDS_BUSY (IDS_UI_RASMAC_BASE+10)
  28. #define IDS_PRINTING (IDS_UI_RASMAC_BASE+11)
  29. #define IDS_ERROR (IDS_UI_RASMAC_BASE+12)
  30. #define IDS_WANT_TO_CAPTURE (IDS_UI_RASMAC_BASE+13)
  31. #define IDS_NOTHING_TO_CONFIGURE (IDS_UI_RASMAC_BASE+14)
  32. #define IDS_PRINTER_OFFLINE (IDS_UI_RASMAC_BASE+15)
  33. #define IDS_DLL_NAME (IDS_UI_RASMAC_BASE+16)
  34. #define IDS_PORT_DESCRIPTION (IDS_UI_RASMAC_BASE+17)
  35. //
  36. // For DLGEDIT.EXE's benefit.
  37. //
  38. #ifndef IDHELPBLT
  39. #error "Get IDHELPBLT definition from bltrc.h"
  40. //
  41. // The value of IDHELPBLT here is only a placeholder to keep dlgedit.exe
  42. // happy. It is redefined to the value in bltrc.h before creating the
  43. // resources.
  44. //
  45. #define IDHELPBLT 80
  46. #endif // IDHELPBLT
  47. //
  48. // ListBox Bitmap IDs
  49. //
  50. #define IDBM_LB_ZONE_NOT_EXPANDED 11001 // (IDRSRC_RASMAC_BASE+1)
  51. #define IDBM_LB_ZONE_EXPANDED 11002
  52. #define IDBM_LB_PRINTER 11003
  53. //
  54. // Get Printers progress icons
  55. //
  56. #define IDI_PROGRESS_ICON_0 11200
  57. #define IDI_PROGRESS_ICON_1 11201
  58. #define IDI_PROGRESS_ICON_2 11202
  59. #define IDI_PROGRESS_ICON_3 11203
  60. #define IDI_PROGRESS_ICON_4 11204
  61. #define IDI_PROGRESS_ICON_5 11205
  62. #define IDI_PROGRESS_ICON_6 11206
  63. #define IDI_PROGRESS_ICON_7 11207
  64. #define IDI_PROGRESS_ICON_8 11208
  65. #define IDI_PROGRESS_ICON_9 11209
  66. #define IDI_PROGRESS_ICON_10 11210
  67. #define IDI_PROGRESS_ICON_11 11211
  68. #define IDI_PROGRESS_NUM_ICONS 12
  69. //
  70. // Get Printers dialogs
  71. //
  72. #define IDD_GET_PRINTERS_DIALOG 11250
  73. #define IDGP_PROGRESS 11251
  74. #define IDGP_ST_MESSAGE 11252
  75. //
  76. // Add port dialog
  77. //
  78. #define IDD_ADDPORT_DIALOG 11300
  79. #define IDAP_LB_OUTLINE 11301
  80. //
  81. // Config port dialog
  82. //
  83. #define IDD_CONFIG_PORT_DIALOG 11350
  84. #define IDCP_CHK_CAPTURE 11351
  85. //
  86. // help contexts
  87. //
  88. #define HC_ADD_PORT_DIALOG (HC_UI_RASMAC_BASE+150)
  89. #define HC_CONFIGURE_PORT_DIALOG (HC_UI_RASMAC_BASE+151)
  90. //
  91. // Function prototypes
  92. //
  93. BOOL ConfigPortDialog( HWND hdlg, BOOL fIsSpooler, BOOL * pfCapture );
  94. BOOL AddPortDialog( HWND hdlg, PATALKPORT pAtalkPort );
  95. BOOL InitializeBlt( VOID );
  96. VOID TerminateBlt( VOID );
  97. //
  98. // Structure used to pass zone and socket handle to lookup thread.
  99. //
  100. typedef struct _NBP_LOOKUP_STRUCT {
  101. SOCKET hSocket;
  102. WCHAR wchZone[MAX_ENTITY+1];
  103. PWSH_NBP_TUPLE pPrinters;
  104. DWORD cPrinters;
  105. } * PNBP_LOOKUP_STRUCT, NBP_LOOKUP_STRUCT;
  106. #endif // _DIALOGS_H_