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.

89 lines
2.4 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 CHAR g_szPrintUIEntryW[];
  32. // Error strings
  33. //
  34. extern LPTSTR g_szErrorFormat;
  35. extern LPTSTR g_szError;
  36. extern LPTSTR g_szEGeneric;
  37. extern LPTSTR g_szEBadCAB;
  38. extern LPTSTR g_szEInvalidParameter;
  39. extern LPTSTR g_szENoMemory;
  40. extern LPTSTR g_szEInvalidCABName;
  41. extern LPTSTR g_szENoDATFile;
  42. extern LPTSTR g_szECABExtract;
  43. extern LPTSTR g_szEUserVerifyFail;
  44. extern LPTSTR g_szENoPrintUI;
  45. extern LPTSTR g_szENoPrintUIEntry;
  46. extern LPTSTR g_szEPrintUIEntryFail;
  47. extern LPTSTR g_szENotSupported;
  48. // Error Return Codes
  49. //
  50. #define SUCCESS_EXITCODE 0xFFFFFFFF
  51. #define ERR_NONE 0x00000000
  52. #define ERR_GENERIC 0x80000000
  53. #define ERR_AUTHENTICODE 0xC0000000
  54. #define ERR_BAD_CAB 0x80000001
  55. #define ERR_INVALID_PARAMETER 0x80000002
  56. #define ERR_NO_MEMORY 0x80000004
  57. #define ERR_INVALID_CAB_NAME 0x80000008
  58. #define ERR_NO_DAT_FILE 0x80000010
  59. #define ERR_CAB_EXTRACT 0x80000020
  60. #define ERR_NO_PRINTUI 0x80000040
  61. #define ERR_NO_PRINTUIENTRY 0x80000080
  62. #define ERR_PRINTUIENTRY_FAIL 0x80000100
  63. #define ERR_PLATFORM_NOT_SUPPORTED 0x80000200
  64. #define FILETABLESIZE 40
  65. typedef struct _ERROR_MAPPING {
  66. DWORD dwErrorCode;
  67. LPTSTR* lpszError;
  68. } ERROR_MAPPING, *LPERROR_MAPPING;
  69. typedef struct _FAKEFILE {
  70. HANDLE hFile;
  71. BOOL bAvailable;
  72. } FAKEFILE, *PFAKEFILE;
  73. extern FAKEFILE g_FileTable[FILETABLESIZE];