2004-11-23 20:38:32 +03:00
#include "idl_types.h"
[
uuid("38578646-4566-4564-2244-275796345667"),
version(0.0),
helpstring("Active Directory Replication LDAP Blobs")
]
interface drsblobs {
2004-11-24 17:33:40 +03:00
/*
* replPropertyMetaData
* w2k uses version 1
* w2k3 uses version 1
*/
2004-11-23 20:38:32 +03:00
typedef struct {
uint32 attribute_id;
uint32 version;
NTTIME_1sec orginating_time;
GUID orginating_dsa;
uint64 orginating_usn;
uint64 local_usn;
2004-11-24 17:33:40 +03:00
} replPropertyMetaData1;
2004-11-23 20:38:32 +03:00
typedef struct {
2004-11-24 17:33:40 +03:00
uint32 unknown1;
2004-11-23 20:38:32 +03:00
uint32 count;
2004-11-24 17:33:40 +03:00
uint32 unknown2;
replPropertyMetaData1 array[count];
} replPropertyMetaDataCtr1;
typedef [nodiscriminant] union {
[case(1)] replPropertyMetaDataCtr1 ctr1;
2004-11-23 20:38:32 +03:00
} replPropertyMetaDataCtr;
2004-11-24 17:33:40 +03:00
typedef [public] struct {
uint32 version;
[switch_is(version)] replPropertyMetaDataCtr ctr;
} replPropertyMetaDataBlob;
2004-11-23 20:38:32 +03:00
void decode_replPropertyMetaData(
2004-11-24 17:33:40 +03:00
[in] replPropertyMetaDataBlob blob
);
/*
* replUpToDateVector
* w2k uses version 1
* w2k3 uses version 2
*/
typedef struct {
GUID dsa;
uint64 usn;
} replUpToDateVector1;
typedef struct {
uint32 unknown1;
uint32 count;
uint32 unknown2;
replUpToDateVector1 array[count];
} replUpToDateVectorCtr1;
typedef struct {
GUID dsa;
uint64 usn;
NTTIME_1sec time;
} replUpToDateVector2;
typedef struct {
uint32 unknown1;
uint32 count;
uint32 unknown2;
replUpToDateVector2 array[count];
} replUpToDateVectorCtr2;
typedef [nodiscriminant] union {
[case(1)] replUpToDateVectorCtr1 ctr1;
[case(2)] replUpToDateVectorCtr2 ctr2;
} replUpToDateVectorCtr;
typedef [public] struct {
uint32 version;
[switch_is(version)] replUpToDateVectorCtr ctr;
} replUpToDateVectorBlob;
void decode_replUpToDateVector(
[in] replUpToDateVectorBlob blob
2004-11-23 20:38:32 +03:00
);
}