mirror of
https://github.com/reactos/reactos.git
synced 2026-07-06 21:54:22 +08:00
[NETAPI32]
DsRoleGetPrimaryDomainInformation: Implement stubs for the DsRoleUpgradeStatus and DsRoleOperationState cases. svn path=/trunk/; revision=66442
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user