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.

59 lines
1.4 KiB

  1. /* cmddata.c - Misc. SCS global data
  2. *
  3. *
  4. * Modification History:
  5. *
  6. * Sudeepb 22-Apr-1992 Created
  7. */
  8. #include "cmd.h"
  9. #include <mvdm.h>
  10. CHAR lpszComSpec[64+8];
  11. USHORT cbComSpec=0;
  12. BOOL IsFirstCall = TRUE;
  13. BOOL IsRepeatCall = FALSE;
  14. BOOL IsFirstWOWCheckBinary = TRUE;
  15. BOOL IsFirstVDMInSystem = FALSE;
  16. BOOL SaveWorldCreated;
  17. PCHAR pSCS_ToSync;
  18. PSCSINFO pSCSInfo;
  19. BOOL fBlock = FALSE;
  20. PCHAR pCommand32;
  21. PCHAR pEnv32;
  22. DWORD dwExitCode32;
  23. CHAR cmdHomeDirectory [] = "C:\\";
  24. CHAR chDefaultDrive;
  25. CHAR comspec[]="COMSPEC=";
  26. BOOL fSoftpcRedirection;
  27. BOOL fSoftpcRedirectionOnShellOut;
  28. CHAR ShortCutInfo[MAX_SHORTCUT_SIZE];
  29. BOOL DosEnvCreated = FALSE;
  30. // Top secret app compat flags for DOS apps!
  31. DWORD dwDosCompatFlags = 0;
  32. int cCmdLnParmStructs = 0;
  33. // For Dynamic Patch Module support
  34. PCMDLNPARMS pCmdLnParms; // an array of these structs
  35. PFAMILY_TABLE *pgDpmDosFamTbls = NULL; // the global DPM tables for DOS
  36. BOOL IsFirstVDM = TRUE;
  37. // FORCEDOS.EXE supported
  38. BOOL DontCheckDosBinaryType = FALSE;
  39. WORD Exe32ActiveCount = 0;
  40. // Redirection Support variables
  41. VDMINFO VDMInfo;
  42. CHAR *lpszzInitEnvironment = NULL;
  43. WORD cchInitEnvironment = 0;
  44. CHAR *lpszzCurrentDirectories = NULL;
  45. DWORD cchCurrentDirectories = 0;
  46. BYTE * pIsDosBinary;
  47. CHAR *lpszzcmdEnv16 = NULL;
  48. CHAR *lpszzVDMEnv32 = NULL;
  49. DWORD cchVDMEnv32;
  50. VDMENVBLK cmdVDMEnvBlk;