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.

118 lines
1.9 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 XP 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. // Cover page filename extension
  19. //
  20. #define MAX_FILENAME_EXT 4
  21. //
  22. // Data structure for representing a list of cover pages:
  23. // the first nServerDirs paths refer to the server cover page directory
  24. // remaining paths contain user cover page directories
  25. //
  26. #define MAX_COVERPAGE_DIRS 8
  27. typedef struct {
  28. INT nDirs;
  29. INT nServerDirs;
  30. LPTSTR pDirPath[MAX_COVERPAGE_DIRS];
  31. } CPDATA, *PCPDATA;
  32. //
  33. // Flag bits attached to each cover page in a listbox
  34. //
  35. #define CPFLAG_DIRINDEX 0x00FF
  36. #define CPFLAG_SERVERCP 0x0100
  37. #define CPFLAG_SELECTED 0x0400
  38. #define CPFLAG_SUFFIX 0x0800
  39. //
  40. // Generate a list of available cover pages (both server and user)
  41. //
  42. VOID
  43. InitCoverPageList(
  44. PCPDATA pCPInfo,
  45. HWND hwndList,
  46. LPTSTR pSelectedCoverPage
  47. );
  48. //
  49. // Retrieve the currently selected cover page name
  50. //
  51. INT
  52. GetSelectedCoverPage(
  53. PCPDATA pCPInfo,
  54. IN HWND hwndList,
  55. OUT LPTSTR lptstrFullPath,
  56. IN UINT cchstrFullPath,
  57. OUT LPTSTR lptstrFileName,
  58. IN UINT cchstrFileName,
  59. OUT BOOL * pbIsServerPage
  60. );
  61. //
  62. // Allocate memory to hold cover page information
  63. //
  64. PCPDATA
  65. AllocCoverPageInfo(
  66. LPTSTR lptstrServerName,
  67. LPTSTR lptstrPrinterName,
  68. BOOL ServerCpOnly
  69. );
  70. //
  71. // must clients use server coverpages?
  72. //
  73. BOOL
  74. UseServerCp(
  75. LPTSTR lptstrServerName
  76. );
  77. //
  78. // Free up memory used for cover page information
  79. //
  80. VOID
  81. FreeCoverPageInfo(
  82. PCPDATA pCPInfo
  83. );
  84. #endif // !_COVERPAGE_H_