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

  1. /*++
  2. Copyright (c) 1999-2001 Microsoft Corporation
  3. Module Name:
  4. shell.h
  5. Abstract:
  6. Class for creating a command console shell
  7. Author:
  8. Brian Guarraci (briangu) 2001.
  9. Revision History:
  10. --*/
  11. #if !defined( _SHELL_H_ )
  12. #define _SHELL_H_
  13. #include <cmnhdr.h>
  14. //#include <userenv.h>
  15. class CSession;
  16. class CScraper;
  17. class CShell
  18. {
  19. protected:
  20. //
  21. // attributes for managing cmd.exe profile & process
  22. //
  23. HANDLE m_hProcess;
  24. HANDLE m_hProfile;
  25. BOOL m_bHaveProfile;
  26. HWINSTA m_hWinSta;
  27. HDESK m_hDesktop;
  28. BOOL CreateIOHandles(
  29. OUT PHANDLE ConOut,
  30. OUT PHANDLE ConIn
  31. );
  32. BOOL StartProcess(
  33. HANDLE
  34. );
  35. BOOL
  36. IsLoadProfilesEnabled(
  37. VOID
  38. );
  39. PTCHAR
  40. GetPathOfTheExecutable(
  41. VOID
  42. );
  43. public:
  44. void Shutdown();
  45. BOOL StartUserSession(
  46. CSession *session,
  47. HANDLE hToken
  48. );
  49. CShell();
  50. virtual ~CShell();
  51. };
  52. #endif // _SHELL_H_