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.2 KiB

  1. #if !defined (EXTERN)
  2. #define EXTERN extern
  3. #endif
  4. #if !defined (ASSIGN)
  5. #define ASSIGN(value)
  6. #endif
  7. /* the 'extern' must be forced for constant arrays, because 'const'
  8. * in C++ implies 'static' otherwise.
  9. */
  10. #define EXTTEXT(n) extern const CHAR n[]
  11. #define TEXTCONST(name,text) EXTTEXT(name) ASSIGN(text)
  12. TEXTCONST(szProfileList,REGSTR_PATH_SETUP "\\ProfileList");
  13. TEXTCONST(szSupervisor,"Supervisor");
  14. TEXTCONST(szProfileImagePath,"ProfileImagePath");
  15. TEXTCONST(szDefaultUserName,".Default");
  16. TEXTCONST(szRATINGS, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Ratings");
  17. TEXTCONST(szRatingsSupervisorKeyName,"Key");
  18. TEXTCONST(szUsersSupervisorKeyName,"Key2");
  19. TEXTCONST(szLogonKey,"Network\\Logon");
  20. TEXTCONST(szUserProfiles,"UserProfiles");
  21. TEXTCONST(szUsername,"Username");
  22. TEXTCONST(szSupervisorPWLKey,"MSLOCUSR!SuperPW");
  23. TEXTCONST(szProfilePrefix,"PRO"); /* for generating temp. profile file names */
  24. TEXTCONST(szProfiles,"Profiles");
  25. #define szProfilesDirectory szProfiles /* name appended to windows dir */
  26. #define szProfileListRootKey szProfileList
  27. TEXTCONST(szStdNormalProfile,"USER.DAT");
  28. TEXTCONST(szReconcileRoot,"Software\\Microsoft\\Windows\\CurrentVersion");
  29. TEXTCONST(szReconcilePrimary,"ProfileReconciliation");
  30. TEXTCONST(szReconcileSecondary,"SecondaryProfileReconciliation");
  31. TEXTCONST(szLocalFile,"LocalFile");
  32. TEXTCONST(szDefaultDir,"DefaultDir");
  33. TEXTCONST(szReconcileName,"Name");
  34. TEXTCONST(szWindirAlias,"*windir");
  35. TEXTCONST(szReconcileRegKey,"RegKey");
  36. TEXTCONST(szReconcileRegValue,"RegValue");
  37. TEXTCONST(szUseProfiles,"UserProfiles");
  38. TEXTCONST(szDisplayProfileErrors,"DisplayProfileErrors");
  39. TEXTCONST(szNULL, "");
  40. TEXTCONST(szOurCLSID, "{95D0F020-451D-11CF-8DAB-00AA006C1A01}");
  41. TEXTCONST(szCLSID, "CLSID");
  42. TEXTCONST(szINPROCSERVER32, "InProcServer32");
  43. TEXTCONST(szDLLNAME, "%SystemRoot%\\system32\\mslocusr.dll");
  44. TEXTCONST(szTHREADINGMODEL, "ThreadingModel");
  45. TEXTCONST(szAPARTMENT, "Apartment");
  46. TEXTCONST(szHelpFile, "users.hlp");
  47. TEXTCONST(szRatingsHelpFile,"ratings.hlp");
  48. EXTERN CHAR abSupervisorKey[16] ASSIGN({0}); /* supervisor password hash */
  49. EXTERN CHAR fSupervisorKeyInit ASSIGN(FALSE); /* whether abSupervisorKey has been initialized */