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_marshall.h | |
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_marshall.h')
-rw-r--r-- | testprogs/win32/midltests/midltests_marshall.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testprogs/win32/midltests/midltests_marshall.h b/testprogs/win32/midltests/midltests_marshall.h new file mode 100644 index 0000000000..0c6aed2721 --- /dev/null +++ b/testprogs/win32/midltests/midltests_marshall.h @@ -0,0 +1,16 @@ +#include "rpc.h" +#include "rpcndr.h" +#define NdrSendReceive NdrSendReceiveMarshall +void NdrSendReceiveMarshall(PMIDL_STUB_MESSAGE stubmsg, unsigned char *buffer); +#define NdrGetBuffer NdrGetBufferMarshall +void NdrGetBufferMarshall(PMIDL_STUB_MESSAGE stubmsg, unsigned long len, RPC_BINDING_HANDLE hnd); +#define NdrServerInitializeNew NdrServerInitializeNewMarshall +void NdrServerInitializeNewMarshall(PRPC_MESSAGE pRpcMsg, + PMIDL_STUB_MESSAGE pStubMsg, + PMIDL_STUB_DESC pStubDesc); +#define I_RpcGetBuffer I_RpcGetBufferMarshall +RPC_STATUS WINAPI I_RpcGetBufferMarshall(PRPC_MESSAGE pMsg); + + + + |