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

/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
coverpg.h
Abstract:
Functions for working with cover pages
Environment:
Windows XP fax driver user interface
Revision History:
02/05/96 -davidx-
Created it.
dd-mm-yy -author-
description
--*/
#ifndef _COVERPAGE_H_
#define _COVERPAGE_H_
//
// Cover page filename extension
//
#define MAX_FILENAME_EXT 4
//
// Data structure for representing a list of cover pages:
// the first nServerDirs paths refer to the server cover page directory
// remaining paths contain user cover page directories
//
#define MAX_COVERPAGE_DIRS 8
typedef struct {
INT nDirs;
INT nServerDirs;
LPTSTR pDirPath[MAX_COVERPAGE_DIRS];
} CPDATA, *PCPDATA;
//
// Flag bits attached to each cover page in a listbox
//
#define CPFLAG_DIRINDEX 0x00FF
#define CPFLAG_SERVERCP 0x0100
#define CPFLAG_SELECTED 0x0400
#define CPFLAG_SUFFIX 0x0800
//
// Generate a list of available cover pages (both server and user)
//
VOID
InitCoverPageList(
PCPDATA pCPInfo,
HWND hwndList,
LPTSTR pSelectedCoverPage
);
//
// Retrieve the currently selected cover page name
//
INT
GetSelectedCoverPage(
PCPDATA pCPInfo,
IN HWND hwndList,
OUT LPTSTR lptstrFullPath,
IN UINT cchstrFullPath,
OUT LPTSTR lptstrFileName,
IN UINT cchstrFileName,
OUT BOOL * pbIsServerPage
);
//
// Allocate memory to hold cover page information
//
PCPDATA
AllocCoverPageInfo(
LPTSTR lptstrServerName,
LPTSTR lptstrPrinterName,
BOOL ServerCpOnly
);
//
// must clients use server coverpages?
//
BOOL
UseServerCp(
LPTSTR lptstrServerName
);
//
// Free up memory used for cover page information
//
VOID
FreeCoverPageInfo(
PCPDATA pCPInfo
);
#endif // !_COVERPAGE_H_