mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
Added shared data test application
svn path=/trunk/; revision=1298
This commit is contained in:
parent
3ae3b46dcd
commit
6f6219e903
9
reactos/apps/tests/dump_shared_data/dump_shared_data.c
Normal file
9
reactos/apps/tests/dump_shared_data/dump_shared_data.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <stdio.h>
|
||||
#include <ntddk.h>
|
||||
#include <napi/shared_data.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("TickCountLow: %x\n",
|
||||
((PKUSER_SHARED_DATA)USER_SHARED_DATA_BASE)->TickCountLow);
|
||||
}
|
40
reactos/apps/tests/dump_shared_data/makefile
Normal file
40
reactos/apps/tests/dump_shared_data/makefile
Normal file
|
@ -0,0 +1,40 @@
|
|||
#
|
||||
#
|
||||
#
|
||||
OBJECTS = dump_shared_data.o
|
||||
PROGS = dump_shared_data.exe
|
||||
LIBS =
|
||||
CLEAN_FILES = dump_shared_data.o dump_shared_data.exe
|
||||
|
||||
all: dump_shared_data.exe
|
||||
|
||||
clean: $(CLEAN_FILES:%=%_clean)
|
||||
|
||||
$(CLEAN_FILES:%=%_clean): %_clean:
|
||||
- $(RM) $*
|
||||
|
||||
.phony: clean $(CLEAN_FILES:%=%_clean)
|
||||
|
||||
floppy: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
|
||||
|
||||
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
|
||||
ifeq ($(DOSCLI),yes)
|
||||
$(CP) $* $(FLOPPY_DIR)\apps\$*
|
||||
else
|
||||
$(CP) $* $(FLOPPY_DIR)/apps/$*
|
||||
endif
|
||||
|
||||
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
|
||||
|
||||
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
|
||||
ifeq ($(DOSCLI),yes)
|
||||
$(CP) $* ..\..\$(DIST_DIR)\apps\$*
|
||||
else
|
||||
$(CP) $* ../../$(DIST_DIR)/apps/$*
|
||||
endif
|
||||
|
||||
dump_shared_data.exe: $(OBJECTS)
|
||||
$(CC) $(OBJECTS) -o dump_shared_data.exe
|
||||
|
||||
BASE_CFLAGS = -I../../include
|
||||
include ../../rules.mak
|
Loading…
Reference in a new issue