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.

51 lines
1.1 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. BOOL IsFirstVDM = TRUE;
  31. // FORCEDOS.EXE supported
  32. BOOL DontCheckDosBinaryType = FALSE;
  33. WORD Exe32ActiveCount = 0;
  34. // Redirection Support variables
  35. VDMINFO VDMInfo;
  36. CHAR *lpszzInitEnvironment = NULL;
  37. WORD cchInitEnvironment = 0;
  38. CHAR *lpszzCurrentDirectories = NULL;
  39. DWORD cchCurrentDirectories = 0;
  40. BYTE * pIsDosBinary;
  41. CHAR *lpszzcmdEnv16 = NULL;
  42. CHAR *lpszzVDMEnv32 = NULL;
  43. DWORD cchVDMEnv32;
  44. VDMENVBLK cmdVDMEnvBlk;