From: Stefan Metzmacher Date: Fri, 20 Sep 2013 17:26:33 +0000 (+0200) Subject: testprogs/win32/rpcecho-win32-pipe/ X-Git-Url: http://git.samba.org/?a=commitdiff_plain;ds=sidebyside;h=a61c54a48ca48f8609e96605ecce876b5d86e83d;p=metze%2Fsamba%2Fwip.git testprogs/win32/rpcecho-win32-pipe/ --- diff --git a/testprogs/win32/rpcecho-win32-pipe/rpcecho.h b/testprogs/win32/rpcecho-win32-pipe/rpcecho.h old mode 100755 new mode 100644 index a56590de1aa3..0638498c96ca --- a/testprogs/win32/rpcecho-win32-pipe/rpcecho.h +++ b/testprogs/win32/rpcecho-win32-pipe/rpcecho.h @@ -4,7 +4,7 @@ /* File created by MIDL compiler version 7.00.0555 */ -/* at Fri Sep 20 16:20:52 2013 +/* at Fri Sep 20 18:05:28 2013 */ /* Compiler settings for rpcecho.idl, rpcecho.acf: Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 7.00.0555 @@ -219,8 +219,8 @@ typedef struct pipe_BYTE_PIPE extern handle_t rpcecho_IfHandle; -extern RPC_IF_HANDLE rpcecho_v4_0_c_ifspec; -extern RPC_IF_HANDLE rpcecho_v4_0_s_ifspec; +extern RPC_IF_HANDLE rpcecho_v1_0_c_ifspec; +extern RPC_IF_HANDLE rpcecho_v1_0_s_ifspec; #endif /* __rpcecho_INTERFACE_DEFINED__ */ /* Additional Prototypes for ALL interfaces */ diff --git a/testprogs/win32/rpcecho-win32-pipe/rpcecho.idl b/testprogs/win32/rpcecho-win32-pipe/rpcecho.idl index e588c13511de..b147514f58b3 100755 --- a/testprogs/win32/rpcecho-win32-pipe/rpcecho.idl +++ b/testprogs/win32/rpcecho-win32-pipe/rpcecho.idl @@ -19,11 +19,11 @@ */ [ -/*uuid(60a15ec5-4de8-11d7-a637-005056a20182), -version(1.0)*/ - uuid("e3514235-4b06-11d1-ab04-00c04fc2dcd2"), +uuid(60a15ec5-4de8-11d7-a637-005056a20182), +version(1.0), +/* uuid("e3514235-4b06-11d1-ab04-00c04fc2dcd2"), version(4.0), - pointer_default(unique) +*/ pointer_default(unique) ] interface rpcecho { diff --git a/testprogs/win32/rpcecho-win32-pipe/rpcecho_c.c b/testprogs/win32/rpcecho-win32-pipe/rpcecho_c.c old mode 100755 new mode 100644 index 5ddbcaa0ca28..9dd7ae0d62fd --- a/testprogs/win32/rpcecho-win32-pipe/rpcecho_c.c +++ b/testprogs/win32/rpcecho-win32-pipe/rpcecho_c.c @@ -4,7 +4,7 @@ /* File created by MIDL compiler version 7.00.0555 */ -/* at Fri Sep 20 16:20:52 2013 +/* at Fri Sep 20 18:05:28 2013 */ /* Compiler settings for rpcecho.idl, rpcecho.acf: Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 7.00.0555 @@ -71,8 +71,8 @@ extern const rpcecho_MIDL_EXPR_FORMAT_STRING rpcecho__MIDL_ExprFormatString; #define GENERIC_BINDING_TABLE_SIZE 0 -/* Standard interface: rpcecho, ver. 4.0, - GUID={0xe3514235,0x4b06,0x11d1,{0xab,0x04,0x00,0xc0,0x4f,0xc2,0xdc,0xd2}} */ +/* Standard interface: rpcecho, ver. 1.0, + GUID={0x60a15ec5,0x4de8,0x11d7,{0xa6,0x37,0x00,0x50,0x56,0xa2,0x01,0x82}} */ handle_t rpcecho_IfHandle; @@ -80,7 +80,7 @@ handle_t rpcecho_IfHandle; static const RPC_CLIENT_INTERFACE rpcecho___RpcClientInterface = { sizeof(RPC_CLIENT_INTERFACE), - {{0xe3514235,0x4b06,0x11d1,{0xab,0x04,0x00,0xc0,0x4f,0xc2,0xdc,0xd2}},{4,0}}, + {{0x60a15ec5,0x4de8,0x11d7,{0xa6,0x37,0x00,0x50,0x56,0xa2,0x01,0x82}},{1,0}}, {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}}, 0, 0, @@ -89,7 +89,7 @@ static const RPC_CLIENT_INTERFACE rpcecho___RpcClientInterface = 0, 0x00000001 }; -RPC_IF_HANDLE rpcecho_v4_0_c_ifspec = (RPC_IF_HANDLE)& rpcecho___RpcClientInterface; +RPC_IF_HANDLE rpcecho_v1_0_c_ifspec = (RPC_IF_HANDLE)& rpcecho___RpcClientInterface; extern const MIDL_STUB_DESC rpcecho_StubDesc; diff --git a/testprogs/win32/rpcecho-win32-pipe/rpcecho_s.c b/testprogs/win32/rpcecho-win32-pipe/rpcecho_s.c old mode 100755 new mode 100644 index d298c10dfa1e..311207d5ec1d --- a/testprogs/win32/rpcecho-win32-pipe/rpcecho_s.c +++ b/testprogs/win32/rpcecho-win32-pipe/rpcecho_s.c @@ -4,7 +4,7 @@ /* File created by MIDL compiler version 7.00.0555 */ -/* at Fri Sep 20 16:20:52 2013 +/* at Fri Sep 20 18:05:28 2013 */ /* Compiler settings for rpcecho.idl, rpcecho.acf: Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 7.00.0555 @@ -66,27 +66,27 @@ extern const rpcecho_MIDL_TYPE_FORMAT_STRING rpcecho__MIDL_TypeFormatString; extern const rpcecho_MIDL_PROC_FORMAT_STRING rpcecho__MIDL_ProcFormatString; extern const rpcecho_MIDL_EXPR_FORMAT_STRING rpcecho__MIDL_ExprFormatString; -/* Standard interface: rpcecho, ver. 4.0, - GUID={0xe3514235,0x4b06,0x11d1,{0xab,0x04,0x00,0xc0,0x4f,0xc2,0xdc,0xd2}} */ +/* Standard interface: rpcecho, ver. 1.0, + GUID={0x60a15ec5,0x4de8,0x11d7,{0xa6,0x37,0x00,0x50,0x56,0xa2,0x01,0x82}} */ extern const MIDL_SERVER_INFO rpcecho_ServerInfo; -extern const RPC_DISPATCH_TABLE rpcecho_v4_0_DispatchTable; +extern const RPC_DISPATCH_TABLE rpcecho_v1_0_DispatchTable; static const RPC_SERVER_INTERFACE rpcecho___RpcServerInterface = { sizeof(RPC_SERVER_INTERFACE), - {{0xe3514235,0x4b06,0x11d1,{0xab,0x04,0x00,0xc0,0x4f,0xc2,0xdc,0xd2}},{4,0}}, + {{0x60a15ec5,0x4de8,0x11d7,{0xa6,0x37,0x00,0x50,0x56,0xa2,0x01,0x82}},{1,0}}, {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}}, - (RPC_DISPATCH_TABLE*)&rpcecho_v4_0_DispatchTable, + (RPC_DISPATCH_TABLE*)&rpcecho_v1_0_DispatchTable, 0, 0, 0, &rpcecho_ServerInfo, 0x04000001 }; -RPC_IF_HANDLE rpcecho_v4_0_s_ifspec = (RPC_IF_HANDLE)& rpcecho___RpcServerInterface; +RPC_IF_HANDLE rpcecho_v1_0_s_ifspec = (RPC_IF_HANDLE)& rpcecho___RpcServerInterface; extern const MIDL_STUB_DESC rpcecho_StubDesc; @@ -709,7 +709,7 @@ static const RPC_DISPATCH_FUNCTION rpcecho_table[] = NdrAsyncServerCall, 0 }; -static const RPC_DISPATCH_TABLE rpcecho_v4_0_DispatchTable = +static const RPC_DISPATCH_TABLE rpcecho_v1_0_DispatchTable = { 11, (RPC_DISPATCH_FUNCTION*)rpcecho_table diff --git a/testprogs/win32/rpcecho-win32-pipe/server.c b/testprogs/win32/rpcecho-win32-pipe/server.c index b208e02298e7..2ce56e90ad6d 100755 --- a/testprogs/win32/rpcecho-win32-pipe/server.c +++ b/testprogs/win32/rpcecho-win32-pipe/server.c @@ -152,7 +152,7 @@ void TestBytePipeIn( ASYNC_BYTE_PIPE *in_pipe) { long ret; - byte in_bytes[2500]; + byte in_bytes[0x80000]; int bytes_count; printf("TestBytePipeIn: Start\n"); @@ -202,13 +202,13 @@ void main(int argc, char **argv) exit(status); } - status = RpcEpRegister(rpcecho_v4_0_s_ifspec, pBindingVector, NULL, "rpcecho server"); + status = RpcEpRegister(rpcecho_v1_0_s_ifspec, pBindingVector, NULL, "rpcecho server"); if (status) { printf("Failed RpcEpRegister\n"); exit(status); } - status = RpcServerRegisterIf(rpcecho_v4_0_s_ifspec, NULL, NULL); + status = RpcServerRegisterIf(rpcecho_v1_0_s_ifspec, NULL, NULL); if (status) { printf("Failed to register interface\n");