Beispiel #1
0
        internal ReplicationOperation(IntPtr addr, DirectoryServer server, Hashtable table)
        {
            DS_REPL_OP operation = new DS_REPL_OP();

            Marshal.PtrToStructure(addr, operation);

            // get the enqueued time
            TimeEnqueued = DateTime.FromFileTime(operation.ftimeEnqueued);

            // get the operation identifier
            OperationNumber = operation.ulSerialNumber;

            // get the priority
            Priority = operation.ulPriority;

            // get the operation type
            OperationType = operation.OpType;

            // get the partition name
            PartitionName = Marshal.PtrToStringUni(operation.pszNamingContext);

            // get the dsaDN
            _dsaDN = Marshal.PtrToStringUni(operation.pszDsaDN);

            // get the dsaobject guid
            SourceServerGuid = operation.uuidDsaObjGuid;

            _server    = server;
            _nameTable = table;
        }
Beispiel #2
0
        internal ReplicationOperation(IntPtr addr, DirectoryServer server, Hashtable table)
        {
            DS_REPL_OP operation = new DS_REPL_OP();
            Marshal.PtrToStructure(addr, operation);

            // get the enqueued time
            _timeEnqueued = DateTime.FromFileTime(operation.ftimeEnqueued);

            // get the operation identifier
            _serialNumber = operation.ulSerialNumber;

            // get the priority
            _priority = operation.ulPriority;

            // get the operation type
            _operationType = operation.OpType;

            // get the partition name
            _namingContext = Marshal.PtrToStringUni(operation.pszNamingContext);

            // get the dsaDN
            _dsaDN = Marshal.PtrToStringUni(operation.pszDsaDN);

            // get the dsaobject guid
            _uuidDsaObjGuid = operation.uuidDsaObjGuid;

            _server = server;
            _nameTable = table;
        }
 internal ReplicationOperation(IntPtr addr, DirectoryServer server, Hashtable table)
 {
     DS_REPL_OP structure = new DS_REPL_OP();
     Marshal.PtrToStructure(addr, structure);
     this.timeEnqueued = DateTime.FromFileTime(structure.ftimeEnqueued);
     this.serialNumber = structure.ulSerialNumber;
     this.priority = structure.ulPriority;
     this.operationType = structure.OpType;
     this.namingContext = Marshal.PtrToStringUni(structure.pszNamingContext);
     this.dsaDN = Marshal.PtrToStringUni(structure.pszDsaDN);
     this.uuidDsaObjGuid = structure.uuidDsaObjGuid;
     this.server = server;
     this.nameTable = table;
 }
Beispiel #4
0
        internal ReplicationOperation(IntPtr addr, DirectoryServer server, Hashtable table)
        {
            DS_REPL_OP structure = new DS_REPL_OP();

            Marshal.PtrToStructure(addr, structure);
            this.timeEnqueued   = DateTime.FromFileTime(structure.ftimeEnqueued);
            this.serialNumber   = structure.ulSerialNumber;
            this.priority       = structure.ulPriority;
            this.operationType  = structure.OpType;
            this.namingContext  = Marshal.PtrToStringUni(structure.pszNamingContext);
            this.dsaDN          = Marshal.PtrToStringUni(structure.pszDsaDN);
            this.uuidDsaObjGuid = structure.uuidDsaObjGuid;
            this.server         = server;
            this.nameTable      = table;
        }