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.

76 lines
1.4 KiB

  1. #define COMPATLAYERMAXLEN 128
  2. extern CHAR szProcessHistoryVar[];
  3. extern CHAR szCompatLayerVar [];
  4. extern CHAR szShimFileLogVar [];
  5. extern BOOL CheckAppHelpInfo(PTD pTD,PSZ szFileName,PSZ szModName);
  6. //
  7. // stuff in wshimdb.c
  8. //
  9. LPWSTR
  10. WOWForgeUnicodeEnvironment(
  11. PSZ pEnvironment, // this task's santitized environment
  12. PWOWENVDATA pEnvData // parent-made environment data
  13. );
  14. NTSTATUS
  15. WOWFreeUnicodeEnvironment(
  16. LPVOID lpEnvironment
  17. );
  18. BOOL
  19. CreateWowChildEnvInformation(
  20. PSZ pszEnvParent
  21. );
  22. BOOL
  23. WOWInheritEnvironment(
  24. PTD pTD, // this TD
  25. PTD pTDParent, // parent TD
  26. LPCWSTR pwszLayers, // new layers var
  27. LPCSTR pszFileName // exe filename
  28. );
  29. NTSTATUS
  30. WOWSetEnvironmentVar_Oem(
  31. LPVOID* ppEnvironment,
  32. PUNICODE_STRING pustrVarName, // pre-made (cheap)
  33. PSZ pszVarValue
  34. );
  35. NTSTATUS
  36. WOWSetEnvironmentVar_U(
  37. LPVOID* ppEnvironment,
  38. WCHAR* pwszVarName,
  39. WCHAR* pwszVarValue
  40. );
  41. PTD
  42. GetParentTD(
  43. HAND16 hTask
  44. );
  45. PSZ
  46. GetTaskEnvptr(
  47. HAND16 hTask
  48. );
  49. //
  50. // stuff in wkman.c
  51. //
  52. extern HAND16 ghShellTDB; // WOWEXEC TDB
  53. extern PTD gptdTaskHead; // Linked List of TDs
  54. extern PWORD16 pCurTDB; // Pointer to KDATA variables
  55. DWORD WOWGetEnvironmentSize(PSZ pszEnv, LPDWORD pStrCount);
  56. PSZ WOWFindEnvironmentVar(PSZ pszName, PSZ pszEnv, PSZ* ppszVal);