diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-02-06 16:34:36 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-02-06 16:34:36 +0100 |
commit | c6a6fa184125f94a0891b613daffb44d93d0e803 (patch) | |
tree | 84b7297e648a8f538d56bc944e5d52b0fb88565e /testprogs/win32/midltests/midltests.idl | |
parent | 3a0cfad2238ce5701102587c6b50ef088c7c55ba (diff) | |
download | samba-c6a6fa184125f94a0891b613daffb44d93d0e803.tar.gz samba-c6a6fa184125f94a0891b613daffb44d93d0e803.tar.bz2 samba-c6a6fa184125f94a0891b613daffb44d93d0e803.zip |
win32-tests: add a very usefull w32 programm to explore midl features
You have to define idl, call the client function
and add a server implementation.
Then you need to compile midltests.exe
and run it, it will dump the generated NDR on the
screen.
metze
(This used to be commit dc15c8833599a1cb8f51c2b5390925410cbf4e12)
Diffstat (limited to 'testprogs/win32/midltests/midltests.idl')
-rw-r--r-- | testprogs/win32/midltests/midltests.idl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testprogs/win32/midltests/midltests.idl b/testprogs/win32/midltests/midltests.idl new file mode 100644 index 0000000000..1932549c56 --- /dev/null +++ b/testprogs/win32/midltests/midltests.idl @@ -0,0 +1,27 @@ +#ifndef MIDLTESTS_C_CODE + +[ + uuid("225b9fcb-eb3d-497b-8b0b-591f049a2507"), + pointer_default(unique) +] +interface midltests +{ + long midltests_fn( + ); +} + +#elif MIDLTESTS_C_CODE + +static void midltests(void) +{ + cli_midltests_fn(); +} + +long srv_midltests_fn(void) +{ + printf("srv_midltests_fn: Start\n"); + printf("srv_midltests_fn: End\n"); + return 0x65757254; +} + +#endif
\ No newline at end of file |