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.

45 lines
845 B

  1. /****************************** Module Header ******************************\
  2. * Module Name: session.h
  3. *
  4. * Copyright (c) 1991, Microsoft Corporation
  5. *
  6. * Remote shell session module header file
  7. *
  8. * History:
  9. * 06-28-92 Davidc Created.
  10. \***************************************************************************/
  11. //
  12. // Define session thread notification values
  13. //
  14. typedef enum {
  15. ConnectError,
  16. DisconnectError,
  17. ClientDisconnected,
  18. ShellEnded,
  19. ServiceStopped
  20. } SESSION_DISCONNECT_CODE, *PSESSION_NOTIFICATION_CODE;
  21. //
  22. // Function protoypes
  23. //
  24. HANDLE
  25. CreateSession(
  26. HANDLE TokenToUse,
  27. PCOMMAND_HEADER LpCommandHeader
  28. );
  29. VOID
  30. DeleteSession(
  31. HANDLE SessionHandle
  32. );
  33. HANDLE
  34. ConnectSession(
  35. HANDLE SessionHandle,
  36. HANDLE ClientPipeHandle
  37. );