Describe implication of upstream ICU-22610
[Samba.git] / testprogs / win32 / midltests / valid / midltests_DRS_EXTENSIONS.idl
blob73aeb16d379687987e93eb59ab4e5f099474a433
1 #ifndef MIDLTESTS_C_CODE
3 /*
4 * For midltests_tcp.exe you may want to
5 * redirect the traffic via rinetd
6 * with a /etc/rinetd.conf like this:
8 * 172.31.9.1 5032 172.31.9.8 5032
9 * 172.31.9.1 5064 172.31.9.8 5064
11 * This is useful to watch the traffic with
12 * a network sniffer.
15 cpp_quote("#define LISTEN_IP \"0.0.0.0\"")
16 cpp_quote("#define FORWARD_IP \"127.0.0.1\"")
17 cpp_quote("#define CONNECT_IP \"172.31.9.1\"")
21 * With midltests_tcp.exe NDR64 is enforced by default.
22 * For testing it might be needed to allow downgrades
23 * to NDR32. This is needed when you use 'pipe'.
25 //cpp_quote("#define DONOT_FORCE_NDR64 1")
28 uuid("225b9fcb-eb3d-497b-8b0b-591f049a2507"),
29 pointer_default(unique)
31 interface midltests
34 typedef struct {
35 [range(1,10000)] long cb;
36 [size_is(cb)] char rcg[];
37 } DRS_EXTENSIONS;
39 long midltests_fn(
40 [out] DRS_EXTENSIONS **e
44 #elif MIDLTESTS_C_CODE
46 static void midltests(void)
48 DRS_EXTENSIONS *e = NULL;
49 cli_midltests_fn(&e);
52 long srv_midltests_fn(DRS_EXTENSIONS **_e)
54 DRS_EXTENSIONS *e;
55 printf("srv_midltests_fn: Start\n");
56 e = (DRS_EXTENSIONS *)malloc(sizeof(DRS_EXTENSIONS) + 0x34);
57 e->cb = 0x34;
58 memset(e->rcg, 0xcd, e->cb);
59 *_e = e;
60 printf("srv_midltests_fn: End\n");
61 return 0x65757254;
64 #endif