From 3bac08f7550d0dc7bb0f55d3c6efe985e2cffcaa Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 24 Feb 2015 22:50:55 +0000 Subject: [PATCH] [NETAPI32] DsRoleGetPrimaryDomainInformation: Implement stubs for the DsRoleUpgradeStatus and DsRoleOperationState cases. svn path=/trunk/; revision=66442 --- reactos/dll/win32/netapi32/ds.c | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/reactos/dll/win32/netapi32/ds.c b/reactos/dll/win32/netapi32/ds.c index 98caa95eeb0..9eac8e7eba5 100644 --- a/reactos/dll/win32/netapi32/ds.c +++ b/reactos/dll/win32/netapi32/ds.c @@ -136,6 +136,40 @@ DWORD WINAPI DsRoleGetPrimaryDomainInformation( LsaFreeMemory(DomainInfo); } break; + + case DsRoleUpgradeStatus: + { + PDSROLE_UPGRADE_STATUS_INFO buffer; + + buffer = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(DSROLE_UPGRADE_STATUS_INFO)); + if (buffer) + { + buffer->OperationState = 0; + buffer->PreviousServerState = 0; + ret = ERROR_SUCCESS; + } + else + ret = ERROR_OUTOFMEMORY; + *Buffer = (PBYTE)buffer; + } + break; + + case DsRoleOperationState: + { + PDSROLE_OPERATION_STATE_INFO buffer; + + buffer = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(DSROLE_OPERATION_STATE_INFO)); + if (buffer) + { + buffer->OperationState = DsRoleOperationIdle; + ret = ERROR_SUCCESS; + } + else + ret = ERROR_OUTOFMEMORY; + *Buffer = (PBYTE)buffer; + } + break; + default: ret = ERROR_CALL_NOT_IMPLEMENTED; } -- 2.17.1