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.

83 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. sbapi.c
  5. Abstract:
  6. This module contains the implementations of the Sb API calls exported
  7. by the POSIX Emulation SubSystem to the Session Manager SubSystem.
  8. Author:
  9. Steve Wood (stevewo) 26-Sep-1989
  10. Revision History:
  11. Ellen Aycock-Wright (ellena) 15-Jul-91 Modified for POSIX
  12. --*/
  13. #include "psxsrv.h"
  14. #if 0
  15. // XXX.mjb: Don't believe this routine is ever referenced or called
  16. // (waiting on the day when Posix sessions are started by the NT session
  17. // manager?), and at the moment it doesn't compile very well. Simple
  18. // solution...
  19. BOOLEAN
  20. PsxSbCreateSession(
  21. IN PSBAPIMSG Msg
  22. )
  23. {
  24. PSBCREATESESSION a = &Msg->u.CreateSession;
  25. PPSX_PROCESS Process;
  26. NTSTATUS Status;
  27. Process = PsxAllocateProcess(&a->ProcessInformation.ClientId);
  28. if (Process == NULL) {
  29. Msg->ReturnedStatus = STATUS_NO_MEMORY;
  30. return TRUE;
  31. }
  32. PsxInitializeProcess(Process, NULL, a->SessionId,
  33. a->ProcessInformation.Process,
  34. a->ProcessInformation.Thread, NULL);
  35. //
  36. // Setup the initial directory prefix stuff
  37. //
  38. PsxInitializeDirectories(Process);
  39. Msg->ReturnedStatus = NtResumeThread(a->ProcessInformation.Thread, NULL);
  40. return TRUE;
  41. }
  42. #endif
  43. BOOLEAN
  44. PsxSbTerminateSession(
  45. IN PSBAPIMSG Msg
  46. )
  47. {
  48. PSBTERMINATESESSION a = &Msg->u.TerminateSession;
  49. Msg->ReturnedStatus = STATUS_NOT_IMPLEMENTED;
  50. return( TRUE );
  51. }
  52. BOOLEAN
  53. PsxSbForeignSessionComplete(
  54. IN PSBAPIMSG Msg
  55. )
  56. {
  57. PSBFOREIGNSESSIONCOMPLETE a = &Msg->u.ForeignSessionComplete;
  58. Msg->ReturnedStatus = STATUS_NOT_IMPLEMENTED;
  59. return( TRUE );
  60. }