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.

90 lines
2.3 KiB

  1. /*----------------------------------------------------------------------------*\
  2. | MODULE: globals.h
  3. |
  4. | Globals header file.
  5. |
  6. | Copyright (C) 1997 Microsoft
  7. | Copyright (C) 1997 Hewlett Packard
  8. |
  9. | history:
  10. | 26-Aug-1997 <rbkunz> Created.
  11. |
  12. \*----------------------------------------------------------------------------*/
  13. extern HINSTANCE g_hInstance;
  14. // Misc Character constants
  15. //
  16. extern CONST TCHAR g_chBackslash;
  17. extern CONST TCHAR g_chDot;
  18. extern CONST TCHAR g_chDoubleQuote;
  19. // Misc String Constants
  20. //
  21. extern CONST TCHAR g_szDotEXE[];
  22. extern CONST TCHAR g_szDotDLL[];
  23. extern CONST TCHAR g_szFNFmt [];
  24. extern CONST TCHAR g_szTNFmt [];
  25. // Wide char parm string to pass to PrintUIEntryW
  26. //
  27. extern CONST WCHAR g_wszParmString[];
  28. // Module and entry point constants
  29. //
  30. extern CONST TCHAR g_szPrintUIMod [];
  31. extern CONST TCHAR g_szPrintUIEquiv [];
  32. extern CONST CHAR g_szPrintUIEntryW[];
  33. // Error strings
  34. //
  35. extern LPTSTR g_szErrorFormat;
  36. extern LPTSTR g_szError;
  37. extern LPTSTR g_szEGeneric;
  38. extern LPTSTR g_szEBadCAB;
  39. extern LPTSTR g_szEInvalidParameter;
  40. extern LPTSTR g_szENoMemory;
  41. extern LPTSTR g_szEInvalidCABName;
  42. extern LPTSTR g_szENoDATFile;
  43. extern LPTSTR g_szECABExtract;
  44. extern LPTSTR g_szEUserVerifyFail;
  45. extern LPTSTR g_szENoPrintUI;
  46. extern LPTSTR g_szENoPrintUIEntry;
  47. extern LPTSTR g_szEPrintUIEntryFail;
  48. extern LPTSTR g_szENotSupported;
  49. // Error Return Codes
  50. //
  51. #define SUCCESS_EXITCODE 0xFFFFFFFF
  52. #define ERR_NONE 0x00000000
  53. #define ERR_GENERIC 0x80000000
  54. #define ERR_AUTHENTICODE 0xC0000000
  55. #define ERR_BAD_CAB 0x80000001
  56. #define ERR_INVALID_PARAMETER 0x80000002
  57. #define ERR_NO_MEMORY 0x80000004
  58. #define ERR_INVALID_CAB_NAME 0x80000008
  59. #define ERR_NO_DAT_FILE 0x80000010
  60. #define ERR_CAB_EXTRACT 0x80000020
  61. #define ERR_NO_PRINTUI 0x80000040
  62. #define ERR_NO_PRINTUIENTRY 0x80000080
  63. #define ERR_PRINTUIENTRY_FAIL 0x80000100
  64. #define ERR_PLATFORM_NOT_SUPPORTED 0x80000200
  65. #define FILETABLESIZE 40
  66. typedef struct _ERROR_MAPPING {
  67. DWORD dwErrorCode;
  68. LPTSTR* lpszError;
  69. } ERROR_MAPPING, *LPERROR_MAPPING;
  70. typedef struct _FAKEFILE {
  71. HANDLE hFile;
  72. BOOL bAvailable;
  73. } FAKEFILE, *PFAKEFILE;
  74. extern FAKEFILE g_FileTable[FILETABLESIZE];