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.

52 lines
780 B

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. tmrqust.c
  5. Abstract:
  6. This module contains the handler for task manager requests.
  7. Author:
  8. Avi Nathan (avin) 17-Jul-1991
  9. Environment:
  10. User Mode Only
  11. Revision History:
  12. Ellen Aycock-Wright (ellena) 15-Sept-1991 Modified for POSIX
  13. --*/
  14. #define WIN32_ONLY
  15. #include "psxses.h"
  16. BOOL ServeTmRequest(PSCTMREQUEST PReq, PVOID PStatus)
  17. {
  18. DWORD Rc;
  19. switch (PReq->Request) {
  20. case TmExit:
  21. TerminateSession(PReq->ExitStatus);
  22. *(PDWORD) PStatus = 0;
  23. return(FALSE);
  24. break;
  25. default:
  26. *(PDWORD) PStatus = (unsigned)-1L; // STATUS_INVALID_PARAMETER;
  27. Rc = FALSE;
  28. }
  29. *(PDWORD) PStatus = 0;
  30. return(TRUE); // Do reply
  31. }