mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[SAMSRV]
Implement SamrShutdownSamServer. svn path=/trunk/; revision=58473
This commit is contained in:
parent
39d6a91610
commit
02f8bfdb8e
1 changed files with 17 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue