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.

133 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. coverpg.h
  5. Abstract:
  6. Functions for working with cover pages
  7. Environment:
  8. Windows NT fax driver user interface
  9. Revision History:
  10. 02/05/96 -davidx-
  11. Created it.
  12. dd-mm-yy -author-
  13. description
  14. --*/
  15. #ifndef _COVERPAGE_H_
  16. #define _COVERPAGE_H_
  17. //
  18. // Directory on the server for storing cover pages.
  19. // This is concatenated with \\servername\print$.
  20. //
  21. #define SERVER_CP_DIRECTORY TEXT("\\print$\\CoverPg\\")
  22. //
  23. // Cover page filename extension and link filename extension
  24. //
  25. #define CP_FILENAME_EXT TEXT(".cov")
  26. #define LNK_FILENAME_EXT TEXT(".lnk")
  27. #define MAX_FILENAME_EXT 4
  28. //
  29. // Data structure for representing a list of cover pages:
  30. // the first nServerDirs paths refer to the server cover page directory
  31. // remaining paths contain user cover page directories
  32. //
  33. #define MAX_COVERPAGE_DIRS 8
  34. typedef struct {
  35. BOOL serverCP;
  36. INT nDirs;
  37. LPTSTR pDirPath[MAX_COVERPAGE_DIRS];
  38. } CPDATA, *PCPDATA;
  39. //
  40. // Flag bits attached to each cover page in a listbox
  41. //
  42. #define CPFLAG_DIRINDEX 0x00FF
  43. #define CPFLAG_LINK 0x0100
  44. //
  45. // Generate a list of available cover pages (both server and user)
  46. //
  47. VOID
  48. InitCoverPageList(
  49. PCPDATA pCPInfo,
  50. HWND hDlg
  51. );
  52. //
  53. // Perform various action to manage the list of cover pages
  54. //
  55. VOID
  56. ManageCoverPageList(
  57. HWND hDlg,
  58. PCPDATA pCPInfo,
  59. HWND hwndList,
  60. INT action
  61. );
  62. #define CPACTION_BROWSE 0
  63. #define CPACTION_OPEN 1
  64. #define CPACTION_NEW 2
  65. #define CPACTION_REMOVE 3
  66. //
  67. // Enable/disable buttons for manage cover page files
  68. //
  69. VOID
  70. UpdateCoverPageControls(
  71. HWND hDlg
  72. );
  73. //
  74. // Allocate memory to hold cover page information
  75. //
  76. PCPDATA
  77. AllocCoverPageInfo(
  78. BOOL serverCP
  79. );
  80. //
  81. // Free up memory used for cover page information
  82. //
  83. VOID
  84. FreeCoverPageInfo(
  85. PCPDATA pCPInfo
  86. );
  87. //
  88. // Perform OLE deinitialization if necessary
  89. //
  90. VOID
  91. DeinitOle(
  92. VOID
  93. );
  94. #endif // !_COVERPAGE_H_