-CC=E:\VC98\bin\cl -nologo
INCLUDES=-I
-CFLAGS=$(INCLUDES) -Zi
+CFLAGS=$(INCLUDES) -Zi -nologo
LIBS=rpcrt4.lib
all: client server
midl rpcecho.idl
client: client.obj rpcecho_c.obj utils.obj
- $(CC) -o client client.obj rpcecho_c.obj utils.obj $(LIBS)
+ $(CC) $(CFLAGS) -o client client.obj rpcecho_c.obj utils.obj $(LIBS)
server: server.obj rpcecho_s.obj utils.obj
- $(CC) -o server server.obj rpcecho_s.obj utils.obj $(LIBS)
+ $(CC) $(CFLAGS) -o server server.obj rpcecho_s.obj utils.obj $(LIBS)
client.obj: rpcecho.h client.c
server.obj: rpcecho.h server.c
[in,out,ref,switch_is(*foo1)] echo_Enum3 *foo3
);
+ typedef struct {
+ uint32 x;
+ [size_is(x)] uint16 surrounding[*];
+ } echo_Surrounding;
+
+ void echo_TestSurrounding(
+ [in,out,ref] echo_Surrounding *data
+ );
}
foo2->e1 = ECHO_ENUM2;
}
+void echo_TestSurrounding(echo_Surrounding *data)
+{
+ printf("Incoming array of size %d\n", data->x);
+ data->x *= 2;
+}
+
void main(int argc, char **argv)
{
RPC_STATUS status;