2005-02-19 22:58:18 +00:00
|
|
|
/* $Id: $
|
|
|
|
*
|
|
|
|
* smapicomp.c - SM_API_COMPLETE_SESSION
|
|
|
|
*
|
|
|
|
* Reactos Session Manager
|
|
|
|
*
|
2005-03-13 17:01:59 +00:00
|
|
|
* --------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* This software is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This software is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this software; see the file COPYING.LIB. If not, write
|
|
|
|
* to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
|
|
|
|
* MA 02139, USA.
|
|
|
|
*
|
|
|
|
* --------------------------------------------------------------------
|
2005-02-19 22:58:18 +00:00
|
|
|
*/
|
|
|
|
#include "smss.h"
|
|
|
|
|
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* SmCompSes/1 API
|
|
|
|
*/
|
|
|
|
SMAPI(SmCompSes)
|
|
|
|
{
|
2005-05-22 15:54:15 +00:00
|
|
|
NTSTATUS Status = STATUS_SUCCESS;
|
2005-03-13 17:01:59 +00:00
|
|
|
|
2005-04-10 19:08:23 +00:00
|
|
|
DPRINT("SM: %s called\n", __FUNCTION__);
|
2005-05-22 15:54:15 +00:00
|
|
|
|
|
|
|
DPRINT("SM: %s: ClientId.UniqueProcess=%lx\n",
|
|
|
|
__FUNCTION__, Request->Header.ClientId.UniqueProcess);
|
|
|
|
Status = SmCompleteClientInitialization ((ULONG) Request->Header.ClientId.UniqueProcess);
|
|
|
|
if (!NT_SUCCESS(Status))
|
2005-03-13 17:01:59 +00:00
|
|
|
{
|
2005-05-22 15:54:15 +00:00
|
|
|
DPRINT1("SM: %s: NtQueryInformationProcess failed (Status=0x%08lx)\n",
|
|
|
|
__FUNCTION__, Status);
|
2005-03-13 17:01:59 +00:00
|
|
|
}
|
2005-05-22 15:54:15 +00:00
|
|
|
Request->SmHeader.Status = Status;
|
|
|
|
return STATUS_SUCCESS;
|
2005-02-19 22:58:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* EOF */
|