2007-10-16 14:55:05 +04:00
#include "idl_types.h"
import "misc.idl";
[
2006-08-16 18:49:22 +04:00
uuid("d049b186-814f-11d1-9a3c-00c04fc9b232"),
version(1.1),
endpoint("ncacn_ip_tcp:", "ncalrpc:"),
helpstring("File Replication API"),
2006-09-19 01:52:00 +04:00
pointer_default(unique)
2007-10-16 14:55:05 +04:00
]
2006-08-16 18:49:22 +04:00
interface frsapi
{
/****************/
/* Function 0x00 */
2008-04-08 05:15:55 +04:00
[todo] void FRSAPI_VERIFY_PROMOTION();
2006-08-16 18:49:22 +04:00
/****************/
/* Function 0x01 */
2008-04-08 05:15:55 +04:00
[todo] void FRSAPI_PROMOTION_STATUS();
2006-08-16 18:49:22 +04:00
/****************/
/* Function 0x02 */
2008-04-08 05:15:55 +04:00
[todo] void FRSAPI_START_DEMOTION();
2006-08-16 18:49:22 +04:00
/****************/
/* Function 0x03 */
2008-04-08 05:15:55 +04:00
[todo] void FRSAPI_COMMIT_DEMOTION();
2006-08-16 18:49:22 +04:00
/****************/
/* Function 0x04 */
2007-10-16 15:44:43 +04:00
/* The DsPollingLongInterval and DsPollingShortInterval attributes
represent registry attributes below HKLM\System\CCS\Services\NtFrs */
2007-10-16 13:16:35 +04:00
WERROR frsapi_SetDsPollingIntervalW(
[in] uint32 CurrentInterval,
[in] uint32 DsPollingLongInterval,
[in] uint32 DsPollingShortInterval
);
2006-08-16 18:49:22 +04:00
2007-10-16 15:44:43 +04:00
/****************/
/* Function 0x05 */
2007-10-16 13:16:35 +04:00
WERROR frsapi_GetDsPollingIntervalW(
2007-10-16 13:30:58 +04:00
[out] uint32 *CurrentInterval,
[out] uint32 *DsPollingLongInterval,
[out] uint32 *DsPollingShortInterval
2007-10-16 13:16:35 +04:00
);
2006-08-16 18:49:22 +04:00
/****************/
/* Function 0x06 */
2008-04-08 05:15:55 +04:00
[todo] void FRSAPI_VERIFY_PROMOTION_W();
2006-08-16 18:49:22 +04:00
/****************/
/* Function 0x07 */
2007-11-02 17:41:55 +03:00
typedef [v1_enum] enum {
2007-10-16 13:12:41 +04:00
FRSAPI_INFO_VERSION = 0,
FRSAPI_INFO_SETS = 1,
FRSAPI_INFO_DS = 2,
FRSAPI_INFO_MEMORY = 3,
FRSAPI_INFO_IDTABLE = 4,
FRSAPI_INFO_OUTLOG = 5,
FRSAPI_INFO_INLOG = 6,
FRSAPI_INFO_THREADS = 7,
FRSAPI_INFO_STAGE = 8,
FRSAPI_INFO_CONFIGTABLE = 9
} frsapi_InfoEnum;
2007-11-02 17:41:55 +03:00
typedef struct {
uint32 length;
GUID guid;
uint32 length2;
uint32 unknown1;
frsapi_InfoEnum level;
uint32 query_counter;
uint32 unknown2;
uint32 offset;
uint32 blob_len;
/* [size_is(length-offset)] uint8 *data; */
[subcontext_size(length-offset),subcontext(0),flag(NDR_REMAINING)] DATA_BLOB blob;
} frsapi_Info;
WERROR frsapi_InfoW(
[in] [range(0,0x10000)] uint32 length,
/* [in,out] [size_is(length)] [unique] uint8 *data */
[in,out,unique] frsapi_Info *info
);
2006-08-16 18:49:22 +04:00
/****************/
/* Function 0x08 */
2007-10-16 16:33:34 +04:00
typedef [v1_enum] enum {
FRSAPI_REPLICA_SET_TYPE_0 = 0x00000000,
FRSAPI_REPLICA_SET_TYPE_DOMAIN = 0x00000002,
FRSAPI_REPLICA_SET_TYPE_DFS = 0x00000003
} frsapi_ReplicaSetType;
2007-10-16 14:55:05 +04:00
WERROR frsapi_IsPathReplicated(
[in,unique] [string,charset(UTF16)] uint16 *path,
2007-10-16 16:33:34 +04:00
[in] frsapi_ReplicaSetType replica_set_type,
2007-10-16 14:55:05 +04:00
[out] uint32 *unknown1,
[out] uint32 *unknown2,
[out] uint32 *unknown3,
2007-10-16 16:33:34 +04:00
[out] GUID *replica_set_guid
2007-10-16 14:55:05 +04:00
);
2006-08-16 18:49:22 +04:00
/****************/
/* Function 0x09 */
2008-04-08 05:15:55 +04:00
[todo] void FRSAPI_WRITER_COMMAND();
2007-10-16 19:12:04 +04:00
/****************/
/* Function 0x0a */
2007-10-17 11:50:39 +04:00
/* not supported before w2k3 sp2 */
WERROR frsapi_ForceReplication(
2007-10-18 23:23:25 +04:00
[in,unique] GUID *guid1,
[in,unique] GUID *guid2,
2007-10-17 11:50:39 +04:00
[in,unique] [charset(UTF16),string] uint16 *replica_set,
[in,unique] [charset(UTF16),string] uint16 *partner_name
);
2007-10-16 19:12:04 +04:00
2006-08-16 18:49:22 +04:00
}