windows-nt/Source/XPSP1/NT/printscan/print/spooler/wpnpinst/exe/globals.h
2020-09-26 16:20:57 +08:00

91 lines
2.3 KiB
C

/*----------------------------------------------------------------------------*\
| MODULE: globals.h
|
| Globals header file.
|
| Copyright (C) 1997 Microsoft
| Copyright (C) 1997 Hewlett Packard
|
| history:
| 26-Aug-1997 <rbkunz> Created.
|
\*----------------------------------------------------------------------------*/
extern HINSTANCE g_hInstance;
// Misc Character constants
//
extern CONST TCHAR g_chBackslash;
extern CONST TCHAR g_chDot;
extern CONST TCHAR g_chDoubleQuote;
// Misc String Constants
//
extern CONST TCHAR g_szDotEXE[];
extern CONST TCHAR g_szDotDLL[];
extern CONST TCHAR g_szFNFmt [];
extern CONST TCHAR g_szTNFmt [];
// Wide char parm string to pass to PrintUIEntryW
//
extern CONST WCHAR g_wszParmString[];
// Module and entry point constants
//
extern CONST TCHAR g_szPrintUIMod [];
extern CONST TCHAR g_szPrintUIEquiv [];
extern CONST CHAR g_szPrintUIEntryW[];
// Error strings
//
extern LPTSTR g_szErrorFormat;
extern LPTSTR g_szError;
extern LPTSTR g_szEGeneric;
extern LPTSTR g_szEBadCAB;
extern LPTSTR g_szEInvalidParameter;
extern LPTSTR g_szENoMemory;
extern LPTSTR g_szEInvalidCABName;
extern LPTSTR g_szENoDATFile;
extern LPTSTR g_szECABExtract;
extern LPTSTR g_szEUserVerifyFail;
extern LPTSTR g_szENoPrintUI;
extern LPTSTR g_szENoPrintUIEntry;
extern LPTSTR g_szEPrintUIEntryFail;
extern LPTSTR g_szENotSupported;
// Error Return Codes
//
#define SUCCESS_EXITCODE 0xFFFFFFFF
#define ERR_NONE 0x00000000
#define ERR_GENERIC 0x80000000
#define ERR_AUTHENTICODE 0xC0000000
#define ERR_BAD_CAB 0x80000001
#define ERR_INVALID_PARAMETER 0x80000002
#define ERR_NO_MEMORY 0x80000004
#define ERR_INVALID_CAB_NAME 0x80000008
#define ERR_NO_DAT_FILE 0x80000010
#define ERR_CAB_EXTRACT 0x80000020
#define ERR_NO_PRINTUI 0x80000040
#define ERR_NO_PRINTUIENTRY 0x80000080
#define ERR_PRINTUIENTRY_FAIL 0x80000100
#define ERR_PLATFORM_NOT_SUPPORTED 0x80000200
#define FILETABLESIZE 40
typedef struct _ERROR_MAPPING {
DWORD dwErrorCode;
LPTSTR* lpszError;
} ERROR_MAPPING, *LPERROR_MAPPING;
typedef struct _FAKEFILE {
HANDLE hFile;
BOOL bAvailable;
} FAKEFILE, *PFAKEFILE;
extern FAKEFILE g_FileTable[FILETABLESIZE];