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.

58 lines
2.1 KiB

  1. /*---------------------------------------------------------------------------*\
  2. | MODULE: globals.cxx
  3. |
  4. | This module declares the global variables used throughout the program.
  5. |
  6. |
  7. | Copyright (C) 1996-1998 Hewlett Packard Company
  8. | Copyright (C) 1996-1998 Microsoft Corporation
  9. |
  10. | history:
  11. | 15-Dec-1996 <chriswil> created.
  12. |
  13. \*---------------------------------------------------------------------------*/
  14. #include "webptprn.h"
  15. HINSTANCE g_hInst = NULL;
  16. /*-----------------------------------*\
  17. | Unlocalizable Strings
  18. \*-----------------------------------*/
  19. CONST TCHAR g_szFilApp [] = TEXT("webptprn.exe");
  20. CONST TCHAR g_szFilInetpp [] = TEXT("inetpp.dll");
  21. CONST TCHAR g_szFilOlePrn [] = TEXT("oleprn.dll");
  22. CONST TCHAR g_szFilIns16 [] = TEXT("wpnpin16.dll");
  23. CONST TCHAR g_szFilIns32 [] = TEXT("wpnpin32.dll");
  24. CONST TCHAR g_szFilInsEx [] = TEXT("wpnpinst.exe");
  25. CONST TCHAR g_szFilInit [] = TEXT("wininit.ini");
  26. CONST TCHAR g_szPPName [] = TEXT("Internet Print Provider");
  27. CONST TCHAR g_szRename [] = TEXT("Rename");
  28. CONST TCHAR g_szHttp [] = TEXT("http://");
  29. CONST TCHAR g_szHttps [] = TEXT("https://");
  30. CONST TCHAR g_szExec [] = TEXT("regsvr32 /u /s %s");
  31. CONST TCHAR g_szCmdUns [] = TEXT("/u");
  32. CONST TCHAR g_szRegCabKey [] = TEXT(".webpnp\\Shell\\Open\\Command");
  33. CONST TCHAR g_szRegCabCmd [] = TEXT("wpnpinst.exe %1");
  34. CONST TCHAR g_szRegUninstall[] = TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall");
  35. CONST TCHAR g_szRegUnsKey [] = TEXT("WebPnp");
  36. CONST TCHAR g_szRegDspNam [] = TEXT("DisplayName");
  37. CONST TCHAR g_szRegUnsNam [] = TEXT("UninstallString");
  38. CONST TCHAR g_szRegUnsVal [] = TEXT("webptprn.exe /u");
  39. /*-----------------------------------*\
  40. | Localizable Strings
  41. \*-----------------------------------*/
  42. LPTSTR g_szMsgAdd = NULL;
  43. LPTSTR g_szMsgDel = NULL;
  44. LPTSTR g_szMsgReboot = NULL;
  45. LPTSTR g_szMsgUninstall = NULL;
  46. LPTSTR g_szMsgFailCpy = NULL;
  47. LPTSTR g_szMsgFailAdd = NULL;
  48. LPTSTR g_szMsgFailAsc = NULL;
  49. LPTSTR g_szRegDspVal = NULL;
  50. LPTSTR g_szMsgOsVerHead = NULL;
  51. LPTSTR g_szMsgOsVerMsg = NULL;