Author: ekohl
Date: Tue Feb 24 22:50:55 2015
New Revision: 66442
URL:
http://svn.reactos.org/svn/reactos?rev=66442&view=rev
Log:
[NETAPI32]
DsRoleGetPrimaryDomainInformation: Implement stubs for the DsRoleUpgradeStatus and
DsRoleOperationState cases.
Modified:
trunk/reactos/dll/win32/netapi32/ds.c
Modified: trunk/reactos/dll/win32/netapi32/ds.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/ds.c?re…
==============================================================================
--- trunk/reactos/dll/win32/netapi32/ds.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netapi32/ds.c [iso-8859-1] Tue Feb 24 22:50:55 2015
@@ -136,6 +136,40 @@
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;
}