testprogs/win32/rpcecho-win32-pipe/ ndr64
authorStefan Metzmacher <metze@samba.org>
Sat, 21 Sep 2013 20:01:46 +0000 (22:01 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 11:15:20 +0000 (13:15 +0200)
testprogs/win32/rpcecho-win32-pipe/Makefile [new file with mode: 0755]
testprogs/win32/rpcecho-win32-pipe/server.c

diff --git a/testprogs/win32/rpcecho-win32-pipe/Makefile b/testprogs/win32/rpcecho-win32-pipe/Makefile
new file mode 100755 (executable)
index 0000000..b5576e3
--- /dev/null
@@ -0,0 +1,24 @@
+#CC=E:\VC98\bin\cl -nologo
+INCLUDES=-I
+CFLAGS=$(INCLUDES) -Zi -D_WIN32_WINNT=0x610 -DTARGET_IS_NT60_OR_LATER
+LIBS=rpcrt4.lib /ML ntdsapi.lib ws2_32.lib
+
+all: client server
+
+clean:
+       del *~ *.obj client server rpcecho_c.c rpcecho_s.c rpcecho.h
+
+rpcecho.h rpcecho_s.c rpcecho_c.c: rpcecho.idl rpcecho.acf
+       midl /target NT60 /acf rpcecho.acf rpcecho.idl
+
+client: client.obj rpcecho_c.obj utils.obj
+       $(CC) -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)
+
+client.obj: rpcecho.h client.c
+server.obj: rpcecho.h server.c
+rpcecho_c.obj: rpcecho.h rpcecho_c.c
+rpcecho_s.obj: rpcecho.h rpcecho_s.c
+utils.obj: rpcecho.h utils.c
index 9324ff3679e686e8e669dffd02592c08dc03c7c0..4f4657af27a70bb4ea1276178ceb36f80fa5e12b 100755 (executable)
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#define _WIN32_WINNT 0x0500
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
 #include "rpcecho.h"
 #include <NtDsApi.h>
 
+#ifndef _M_AMD64
+#error "please run 'vcvarsall.bat amd64' -midltests_tcp needs 64-bit support!"
+#endif
+
 #define RPC_MIN_CALLS 1
 #define RPC_MAX_CALLS 20
 #define RPC_ENDPOINT "\\pipe\\rpcecho"