mirror of https://github.com/tongzx/nt5src
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
52 lines
780 B
/*++
|
|
|
|
Copyright (c) 1989 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
tmrqust.c
|
|
|
|
Abstract:
|
|
|
|
This module contains the handler for task manager requests.
|
|
|
|
Author:
|
|
|
|
Avi Nathan (avin) 17-Jul-1991
|
|
|
|
Environment:
|
|
|
|
User Mode Only
|
|
|
|
Revision History:
|
|
|
|
Ellen Aycock-Wright (ellena) 15-Sept-1991 Modified for POSIX
|
|
|
|
--*/
|
|
|
|
#define WIN32_ONLY
|
|
#include "psxses.h"
|
|
|
|
BOOL ServeTmRequest(PSCTMREQUEST PReq, PVOID PStatus)
|
|
{
|
|
|
|
DWORD Rc;
|
|
|
|
switch (PReq->Request) {
|
|
case TmExit:
|
|
TerminateSession(PReq->ExitStatus);
|
|
*(PDWORD) PStatus = 0;
|
|
return(FALSE);
|
|
break;
|
|
|
|
default:
|
|
*(PDWORD) PStatus = (unsigned)-1L; // STATUS_INVALID_PARAMETER;
|
|
Rc = FALSE;
|
|
}
|
|
|
|
*(PDWORD) PStatus = 0;
|
|
return(TRUE); // Do reply
|
|
}
|
|
|
|
|
|
|