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.

182 lines
7.8 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1994 - 1999
  3. All rights reserved.
  4. Module Name:
  5. globals.hxx
  6. Abstract:
  7. Holds global definitions
  8. Author:
  9. Albert Ting (AlbertT) 21-Sept-1994
  10. Revision History:
  11. --*/
  12. #ifdef _GLOBALS
  13. #define EXTERN
  14. #define EQ(x) = x
  15. #else
  16. #define EXTERN extern
  17. #define EQ(x)
  18. #endif
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. //
  23. // Any C style declarations.
  24. //
  25. EXTERN HINSTANCE ghInst;
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. EXTERN LPCTSTR gszClassName EQ( TEXT( "PrintUI_PrinterQueue" ));
  30. EXTERN LPCTSTR gszStatusSeparator EQ( TEXT( " - " ));
  31. EXTERN LPCTSTR gszSpace EQ( TEXT( " " ));
  32. EXTERN LPCTSTR gszComma EQ( TEXT( "," ));
  33. EXTERN LPCTSTR gszNULL EQ( TEXT( "" ));
  34. EXTERN LPCTSTR gszWack EQ( TEXT( "\\" ));
  35. EXTERN LPCTSTR gszSlash EQ( TEXT( "/" ));
  36. EXTERN LPCTSTR gszQuote EQ( TEXT( "\"" ));
  37. EXTERN LPCTSTR gszNewObject EQ( TEXT( "WinUtils_NewObject" ));
  38. EXTERN LPCTSTR gszWindowsHlp EQ( TEXT( "windows.hlp" ));
  39. EXTERN LPCTSTR gszHtmlPrintingHlp EQ( TEXT( "printing.chm" ));
  40. EXTERN LPCTSTR gszQueueCreateClassName EQ( TEXT( "PrintUI_QueueCreate" ));
  41. EXTERN LPCTSTR gszUISingleJobStatus EQ( TEXT( "UISingleJobStatusString" ));
  42. EXTERN LPCTSTR gszPrinterPositions EQ( TEXT( "Printers\\Settings" ));
  43. EXTERN LPCTSTR gszWinspool EQ( TEXT( "winspool.drv" ));
  44. EXTERN LPCTSTR gszPreferredConnection EQ( TEXT( "PreferredConnection" ));
  45. EXTERN LPCTSTR gszNtPrintInf EQ( TEXT( "ntprint.inf" ));
  46. EXTERN LPCTSTR gszInf EQ( TEXT( "inf" ));
  47. EXTERN LPCTSTR gszAddPrinterWizard EQ( TEXT( "Printers\\Settings\\Wizard" ));
  48. EXTERN LPCTSTR gszAPWTestPage EQ( TEXT( "Test Page" ));
  49. EXTERN LPCTSTR gszAPWUseWeb EQ( TEXT( "From Web" ));
  50. EXTERN LPCTSTR gszAPWDriverName EQ( TEXT( "Driver Name" ));
  51. EXTERN LPCTSTR gszAPWUseExisting EQ( TEXT( "Use Existing" ));
  52. EXTERN LPCTSTR gszAPWSetAsDefault EQ( TEXT( "Set As Default"));
  53. EXTERN LPCTSTR gszAPWAttributes EQ( TEXT( "Default Attributes" ));
  54. EXTERN LPCTSTR gszAPWLocalPrinter EQ( TEXT( "Local Printer" ));
  55. EXTERN LPCTSTR gszAPWShared EQ( TEXT( "Shared" ));
  56. EXTERN LPCTSTR gszAPWAdditionalDrv EQ( TEXT( "Additional Drivers" ));
  57. EXTERN LPCTSTR gszAPWPnPAutodetect EQ( TEXT( "PnP Autodetect" ));
  58. EXTERN LPCTSTR gszAddPrinterWizardPolicy EQ( TEXT( "Software\\Policies\\Microsoft\\Windows NT\\Printers\\Wizard" ));
  59. EXTERN LPCTSTR gszAPWSharing EQ( TEXT( "Auto Sharing" ));
  60. EXTERN LPCTSTR gszAPWPublish EQ( TEXT( "Auto Publishing" ));
  61. EXTERN LPCTSTR gszAPWDrivers EQ( TEXT( "Auto Drivers" ));
  62. EXTERN LPCTSTR gszAPWDownLevelBrowse EQ( TEXT( "Downlevel Browse" ));
  63. EXTERN LPCTSTR gszAPWPrintersPageURL EQ( TEXT( "Printers Page URL" ));
  64. EXTERN LPCTSTR gszAPWDefaultSearchScope EQ( TEXT( "Default Search Scope" ));
  65. EXTERN LPCTSTR gszSpoolerPolicy EQ( TEXT( "Software\\Policies\\Microsoft\\Windows NT\\Printers" ));
  66. EXTERN LPCTSTR gszSpoolerPublish EQ( TEXT( "PublishPrinters" ));
  67. EXTERN LPCTSTR gszUsePhysicalLocation EQ( TEXT( "PhysicalLocationSupport"));
  68. EXTERN LPCTSTR gszPrinters EQ( TEXT( "Printers" ));
  69. EXTERN LPCTSTR gszConnections EQ( TEXT( "Connections" ));
  70. EXTERN LPCTSTR gszLocalPrintNotification EQ( TEXT( "EnableBalloonNotificationsLocal" ));
  71. EXTERN LPCTSTR gszNetworkPrintNotification EQ( TEXT( "EnableBalloonNotificationsRemote" ));
  72. EXTERN LPCTSTR gszWindows EQ( TEXT( "Windows" ));
  73. EXTERN LPCTSTR gszDevices EQ( TEXT( "Devices" ));
  74. EXTERN LPCTSTR gszDevice EQ( TEXT( "Device" ));
  75. EXTERN LPCTSTR gszNetMsgDll EQ( TEXT( "netmsg.dll" ));
  76. EXTERN LPCTSTR gszDefaultPrintProcessor EQ( TEXT( "winprint" ));
  77. EXTERN LPCTSTR gszDefaultDataType EQ( TEXT( "RAW" ));
  78. EXTERN LPCTSTR gszDsPrinterClassName EQ( TEXT( "printQueue" ));
  79. EXTERN LPCTSTR gszCodeDownLoadDllName EQ( TEXT( "cdm.dll" ));
  80. EXTERN LPCTSTR gszShellDllName EQ( TEXT( "shell32.dll" ));
  81. EXTERN LPCTSTR gszOpen EQ( TEXT( "open" ));
  82. EXTERN LPCTSTR gszPrintUIEntry EQ( TEXT( "printui.dll,PrintUIEntry" ));
  83. EXTERN LPCTSTR gszRunDll EQ( TEXT( "rundll32.exe" ));
  84. EXTERN LPCTSTR gszNetworkProvider EQ( TEXT( "System\\CurrentControlSet\\Control\\NetworkProvider\\Order" ) );
  85. EXTERN LPCTSTR gszProviderOrder EQ( TEXT( "ProviderOrder" ));
  86. EXTERN LPCTSTR gszHelpTroubleShooterURL EQ( TEXT( "-Url hcp://help/tshoot/tsprint.htm" ));
  87. EXTERN LPCTSTR gszHelpQueueId EQ( TEXT( "print_queue_view_window.htm" ));
  88. EXTERN LPCTSTR gszRealNetworkName EQ( TEXT( "UIRealNetworkName" ));
  89. EXTERN LPCTSTR gszRegPrinters EQ( TEXT( "Printers" ));
  90. EXTERN LPCTSTR gszShowLogonDomain EQ( TEXT( "ShowLogonDomain" ));
  91. EXTERN LPCTSTR gszHttpPrefix0 EQ( TEXT( "http://" ));
  92. EXTERN LPCTSTR gszHttpPrefix1 EQ( TEXT( "https://" ));
  93. EXTERN LPCTSTR gszPrinterSuffix EQ( TEXT( "/.printer" ));
  94. EXTERN LPCTSTR gszLocation EQ( TEXT( "location" ));
  95. EXTERN LPCTSTR gszSite EQ( TEXT( "site" ));
  96. EXTERN LPCTSTR gszSubnet EQ( TEXT( "subnet" ));
  97. EXTERN LPCTSTR gszComputer EQ( TEXT( "computer" ));
  98. EXTERN LPCTSTR gszName EQ( TEXT( "name" ));
  99. EXTERN LPCTSTR gszLdapPrefix EQ( TEXT( "LDAP://" ));
  100. EXTERN LPCTSTR gszSiteObject EQ( TEXT( "siteObject" ));
  101. EXTERN LPCTSTR gszAllowed EQ( TEXT( "allowedAttributesEffective" ));
  102. EXTERN LPCTSTR gszGroupPolicyPhysicalLocationPath EQ( TEXT("Software\\Policies\\Microsoft\\Windows NT\\Printers"));
  103. EXTERN LPCTSTR gszGroupPolicyPhysicalLocationKey EQ( TEXT("PhysicalLocation"));
  104. EXTERN LPCTSTR gszUserLocationPropertyName EQ( TEXT("physicalDeliveryOfficeName"));
  105. EXTERN LPCTSTR gszMachineLocationPropertyName EQ( TEXT("location"));
  106. EXTERN LPCTSTR gszRootDSE EQ( TEXT("RootDSE"));
  107. EXTERN LPCTSTR gszConfigurationNameingContext EQ( TEXT("configurationNamingContext"));
  108. EXTERN LPCTSTR gszLeadingSlashes EQ( TEXT("\\\\"));
  109. EXTERN LPCTSTR gszCNEquals EQ( TEXT("CN="));
  110. EXTERN LPCTSTR gszSubnetContainter EQ( TEXT("CN=Subnets,CN=Sites"));
  111. EXTERN LPCTSTR gszSitesContainter EQ( TEXT("CN=Sites"));
  112. EXTERN LPCTSTR gszSiteLocationPropertyName EQ( TEXT("location"));
  113. EXTERN LPCTSTR gszSubnetLocationPropertyName EQ( TEXT("location"));
  114. EXTERN LPCTSTR gszIpHlpApiLibrary EQ( TEXT("iphlpapi.dll"));
  115. EXTERN LPCTSTR gszSecurityLibrary EQ( TEXT("secur32.dll"));
  116. EXTERN LPCTSTR gszNetApiLibrary EQ( TEXT("netapi32.dll"));
  117. EXTERN LPCTSTR gszWinSockLibrary EQ( TEXT("ws2_32.dll"));
  118. EXTERN TCHAR gchSeparator EQ( TEXT('/'));
  119. EXTERN LPCTSTR gszLocationHtmFile EQ( TEXT("sag_mp_location_lite.htm"));
  120. EXTERN LPCTSTR gszSiteIconClass EQ( TEXT("site"));
  121. EXTERN LPCTSTR gszDSIconFile EQ( TEXT("dsquery.dll"));
  122. EXTERN LPCTSTR gszBalloonSoundPrintComplete EQ( TEXT("PrintComplete"));
  123. EXTERN const TCHAR gszXvcLocalMonitor[] EQ( TEXT(",XcvMonitor Local Port"));
  124. EXTERN const TCHAR gszAddPort[] EQ( TEXT("AddPort"));
  125. EXTERN INT gcySmIcon;
  126. EXTERN INT gcxSmIcon;
  127. EXTERN CCSLock* gpCritSec;
  128. EXTERN CCSLock* gpTrayLock;
  129. EXTERN HACCEL ghAccel;
  130. EXTERN HWND ghwndActive;
  131. #if DBG
  132. EXTERN SINGLETHREAD_VAR( UIThread );
  133. #endif
  134. EXTERN LONG gcRefThisDll;
  135. /********************************************************************
  136. Simple externs only.
  137. ********************************************************************/
  138. extern NUMBERFMT gNumberFmt;
  139. #undef EXTERN
  140. #undef EQ