mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 13:51:21 +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
|
NTAPI
|
||||||
SamrShutdownSamServer(IN SAMPR_HANDLE ServerHandle)
|
SamrShutdownSamServer(IN SAMPR_HANDLE ServerHandle)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
PSAM_DB_OBJECT ServerObject;
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
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…
Add table
Add a link
Reference in a new issue