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.

79 lines
1.7 KiB

  1. #include "vshimdb.h"
  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);
  57. PFLAGINFOBITS CheckFlagInfo(DWORD FlagType,DWORD dwFlag);
  58. PFLAGINFOBITS InitFlagInfo(PVOID pvFlagInfo,DWORD FlagType,DWORD dwFlag);
  59. VOID FreeFlagInfo(PFLAGINFOBITS pFlagInfoBits);