summaryrefslogtreecommitdiffstats
path: root/testprogs/win32/midltests/todo/midltests-string-in-out-ref.idl
blob: 4db6f968d83d19a58410c45a7b3b633f43f71363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef MIDLTESTS_C_CODE

[
  uuid("225b9fcb-eb3d-497b-8b0b-591f049a2507"),
  pointer_default(unique)
]
interface midltests
{
	long midltests_fn(
		[in,out,ref,string] wchar_t *s
	);
}

#elif MIDLTESTS_C_CODE

static void midltests(void)
{
	wchar_t s[] = { 's', 'a', 'm', 'b', 'a', 0 };

	cli_midltests_fn(s);
}

long srv_midltests_fn(wchar_t *s)
{
	printf("srv_midltests_fn: Start\n");
	s[1] = 0;
	s[2] = 'M';
	s[5] = '4';
	printf("srv_midltests_fn: End\n");
	return 0x65757254;
}

#endif