Implement SamrShutdownSamServer.

svn path=/trunk/; revision=58473
This commit is contained in:
Eric Kohl 2013-03-11 21:49:11 +00:00
parent 39d6a91610
commit 02f8bfdb8e

View file

@ -205,8 +205,23 @@ NTSTATUS
NTAPI
SamrShutdownSamServer(IN SAMPR_HANDLE ServerHandle)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
PSAM_DB_OBJECT ServerObject;
NTSTATUS Status;
TRACE("(%p)\n", ServerHandle);
/* Validate the server handle */
Status = SampValidateDbObject(ServerHandle,
SamDbServerObject,
SAM_SERVER_SHUTDOWN,
&ServerObject);
if (!NT_SUCCESS(Status))
return Status;
/* Shut the server down */
RpcMgmtStopServerListening(0);
return STATUS_SUCCESS;
}