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.

129 lines
3.8 KiB

  1. /*****************************************************************************\
  2. * MODULE: globals.h
  3. *
  4. * Global header file. Any global variables should be localized to this
  5. * location.
  6. *
  7. *
  8. * Copyright (C) 1996-1997 Microsoft Corporation
  9. * Copyright (C) 1996-1997 Hewlett Packard
  10. *
  11. * History:
  12. * 07-Oct-1996 HWP-Guys Initiated port from win95 to winNT
  13. *
  14. \*****************************************************************************/
  15. // Global variables.
  16. //
  17. extern HINSTANCE g_hInst;
  18. extern CRITICAL_SECTION g_csMonitorSection;
  19. extern DWORD g_dwCritOwner;
  20. extern DWORD g_dwJobLimit;
  21. extern BOOL g_bUpgrade;
  22. #ifdef WINNT32
  23. extern CRITICAL_SECTION g_csCreateSection;
  24. extern HANDLE g_eResetConnections;
  25. extern DWORD g_dwConCount;
  26. #endif
  27. extern CCriticalSection *g_pcsEndBrowserSessionLock;
  28. // Constant string identifiers.
  29. //
  30. extern TCHAR g_szMachine[];
  31. #ifdef WINNT32
  32. // Holds other network names
  33. //
  34. extern LPWSTR *g_ppszOtherNames;
  35. extern DWORD g_cOtherNames;
  36. #endif
  37. extern LPTSTR g_szRegProvider;
  38. extern LPTSTR g_szRegPrintProviders;
  39. extern TCHAR g_szDefSplDir [];
  40. extern TCHAR g_szDisplayStr[];
  41. extern CONST TCHAR g_szSplDir9X [];
  42. extern CONST TCHAR g_szSplPfx [];
  43. extern CONST TCHAR g_szUserAgent[];
  44. extern CONST TCHAR g_szLocalPort[];
  45. extern CONST TCHAR g_szDisplayName[];
  46. extern CONST TCHAR g_szLibraryName[];
  47. extern CONST TCHAR g_szWinInetDll[];
  48. extern CONST TCHAR g_szUriPrinters[];
  49. extern CONST TCHAR g_szPOST[];
  50. extern CONST TCHAR g_szGET[];
  51. extern CONST TCHAR g_szContentLen[];
  52. extern CONST TCHAR g_szContentType[];
  53. extern CONST TCHAR g_szEmptyString[];
  54. extern CONST TCHAR g_szDescription[];
  55. extern CONST TCHAR g_szComment[];
  56. extern CONST TCHAR g_szProviderName[];
  57. extern CONST TCHAR g_szNewLine[];
  58. extern CONST TCHAR g_szProcessName[];
  59. extern CONST TCHAR g_szConfigureMsg[];
  60. extern CONST TCHAR g_szRegPorts[];
  61. extern CONST TCHAR g_szAuthDlg[];
  62. extern CONST TCHAR g_szDocRemote[];
  63. extern CONST TCHAR g_szDocLocal[];
  64. extern CONST TCHAR g_szAuthMethod[];
  65. extern CONST TCHAR g_szAuthMethod[];
  66. extern CONST TCHAR g_szUserName[];
  67. extern CONST TCHAR g_szPassword[];
  68. extern CONST TCHAR g_szPerUserPath[];
  69. // Http Version Number
  70. //
  71. extern CONST TCHAR g_szHttpVersion[];
  72. // Internet API strings. These MUST NOT be unicode enabled.
  73. //
  74. extern CONST CHAR g_szInternetCloseHandle[];
  75. extern CONST CHAR g_szInternetErrorDlg[];
  76. extern CONST CHAR g_szInternetReadFile[];
  77. extern CONST CHAR g_szInternetWriteFile[];
  78. extern CONST CHAR g_szHttpQueryInfo[];
  79. extern CONST CHAR g_szInternetOpenUrl[];
  80. extern CONST CHAR g_szHttpSendRequest[];
  81. extern CONST CHAR g_szHttpSendRequestEx[];
  82. extern CONST CHAR g_szInternetOpen[];
  83. extern CONST CHAR g_szInternetConnect[];
  84. extern CONST CHAR g_szHttpOpenRequest[];
  85. extern CONST CHAR g_szHttpAddRequestHeaders[];
  86. extern CONST CHAR g_szHttpEndRequest[];
  87. extern CONST CHAR g_szInternetSetOption[];
  88. // Internet API for controling the Url output.
  89. //
  90. extern PFNHTTPQUERYINFO g_pfnHttpQueryInfo;
  91. extern PFNINTERNETOPENURL g_pfnInternetOpenUrl;
  92. extern PFNINTERNETERRORDLG g_pfnInternetErrorDlg;
  93. extern PFNHTTPSENDREQUEST g_pfnHttpSendRequest;
  94. extern PFNHTTPSENDREQUESTEX g_pfnHttpSendRequestEx;
  95. extern PFNINTERNETREADFILE g_pfnInternetReadFile;
  96. extern PFNINTERNETWRITEFILE g_pfnInternetWriteFile;
  97. extern PFNINTERNETCLOSEHANDLE g_pfnInternetCloseHandle;
  98. extern PFNINTERNETOPEN g_pfnInternetOpen;
  99. extern PFNINTERNETCONNECT g_pfnInternetConnect;
  100. extern PFNHTTPOPENREQUEST g_pfnHttpOpenRequest;
  101. extern PFNHTTPADDREQUESTHEADERS g_pfnHttpAddRequestHeaders;
  102. extern PFNHTTPENDREQUEST g_pfnHttpEndRequest;
  103. extern PFNINTERNETSETOPTION g_pfnInternetSetOption;
  104. // IPP string which uses NULL-command to server.
  105. //
  106. #define g_szUriIPP g_szUriPrinters
  107. #define MAXDWORD 0xffffffff
  108. #define COMMITTED_STACK_SIZE (1024*32)
  109. extern PCINETMON gpInetMon;