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
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. extern CRITICAL_SECTION g_csCreateSection;
  23. extern HANDLE g_eResetConnections;
  24. extern DWORD g_dwConCount;
  25. extern CCriticalSection *g_pcsEndBrowserSessionLock;
  26. // Constant string identifiers.
  27. //
  28. extern TCHAR g_szMachine[];
  29. extern LPTSTR g_szRegProvider;
  30. extern LPTSTR g_szRegPrintProviders;
  31. extern TCHAR g_szDefSplDir [];
  32. extern TCHAR g_szDisplayStr[];
  33. extern CONST TCHAR g_szSplDir9X [];
  34. extern CONST TCHAR g_szSplPfx [];
  35. extern CONST TCHAR g_szUserAgent[];
  36. extern CONST TCHAR g_szLocalPort[];
  37. extern CONST TCHAR g_szDisplayName[];
  38. extern CONST TCHAR g_szLibraryName[];
  39. extern CONST TCHAR g_szWinInetDll[];
  40. extern CONST TCHAR g_szUriPrinters[];
  41. extern CONST TCHAR g_szPOST[];
  42. extern CONST TCHAR g_szGET[];
  43. extern CONST TCHAR g_szContentLen[];
  44. extern CONST TCHAR g_szContentType[];
  45. extern CONST TCHAR g_szEmptyString[];
  46. extern CONST TCHAR g_szDescription[];
  47. extern CONST TCHAR g_szComment[];
  48. extern CONST TCHAR g_szProviderName[];
  49. extern CONST TCHAR g_szNewLine[];
  50. extern CONST TCHAR g_szProcessName[];
  51. extern CONST TCHAR g_szConfigureMsg[];
  52. extern CONST TCHAR g_szRegPorts[];
  53. extern CONST TCHAR g_szAuthDlg[];
  54. extern CONST TCHAR g_szDocRemote[];
  55. extern CONST TCHAR g_szDocLocal[];
  56. extern CONST TCHAR g_szAuthMethod[];
  57. extern CONST TCHAR g_szAuthMethod[];
  58. extern CONST TCHAR g_szUserName[];
  59. extern CONST TCHAR g_szPassword[];
  60. extern CONST TCHAR g_szPerUserPath[];
  61. // Http Version Number
  62. //
  63. extern CONST TCHAR g_szHttpVersion[];
  64. // Internet API strings. These MUST NOT be unicode enabled.
  65. //
  66. extern CONST CHAR g_szInternetCloseHandle[];
  67. extern CONST CHAR g_szInternetErrorDlg[];
  68. extern CONST CHAR g_szInternetReadFile[];
  69. extern CONST CHAR g_szInternetWriteFile[];
  70. extern CONST CHAR g_szHttpQueryInfo[];
  71. extern CONST CHAR g_szInternetOpenUrl[];
  72. extern CONST CHAR g_szHttpSendRequest[];
  73. extern CONST CHAR g_szHttpSendRequestEx[];
  74. extern CONST CHAR g_szInternetOpen[];
  75. extern CONST CHAR g_szInternetConnect[];
  76. extern CONST CHAR g_szHttpOpenRequest[];
  77. extern CONST CHAR g_szHttpAddRequestHeaders[];
  78. extern CONST CHAR g_szHttpEndRequest[];
  79. extern CONST CHAR g_szInternetSetOption[];
  80. // Internet API for controling the Url output.
  81. //
  82. extern PFNHTTPQUERYINFO g_pfnHttpQueryInfo;
  83. extern PFNINTERNETOPENURL g_pfnInternetOpenUrl;
  84. extern PFNINTERNETERRORDLG g_pfnInternetErrorDlg;
  85. extern PFNHTTPSENDREQUEST g_pfnHttpSendRequest;
  86. extern PFNHTTPSENDREQUESTEX g_pfnHttpSendRequestEx;
  87. extern PFNINTERNETREADFILE g_pfnInternetReadFile;
  88. extern PFNINTERNETWRITEFILE g_pfnInternetWriteFile;
  89. extern PFNINTERNETCLOSEHANDLE g_pfnInternetCloseHandle;
  90. extern PFNINTERNETOPEN g_pfnInternetOpen;
  91. extern PFNINTERNETCONNECT g_pfnInternetConnect;
  92. extern PFNHTTPOPENREQUEST g_pfnHttpOpenRequest;
  93. extern PFNHTTPADDREQUESTHEADERS g_pfnHttpAddRequestHeaders;
  94. extern PFNHTTPENDREQUEST g_pfnHttpEndRequest;
  95. extern PFNINTERNETSETOPTION g_pfnInternetSetOption;
  96. // IPP string which uses NULL-command to server.
  97. //
  98. #define g_szUriIPP g_szUriPrinters
  99. #define MAXDWORD 0xffffffff
  100. #define COMMITTED_STACK_SIZE (1024*32)
  101. extern PCINETMON gpInetMon;