strip dll

This commit is contained in:
Mylloon 2024-08-21 12:32:27 +02:00
parent 898cba7a72
commit 34812a49cc
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 3 additions and 15 deletions

View file

@ -1,7 +1,8 @@
CC = x86_64-w64-mingw32-gcc
STRIP = strip -s
RM = rm
CFLAGS = -shared -lpsapi -luser32
CFLAGS = -shared
EXES = detect_game
EXT = .dll
@ -10,6 +11,7 @@ all: $(EXES)
$(EXES): %: %.c $(DEPS)
$(CC) $^ -o $@$(EXT) $(CFLAGS)
$(STRIP) $@$(EXT)
%.o: %.c
$(CC) -c $< -o $@ $(CFLAGS)

View file

@ -1,20 +1,6 @@
#include <windows.h>
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call,
LPVOID lpReserved) {
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
#include <psapi.h>
#include <stdlib.h>
#include <tchar.h>
#define MAX_TITLE_LENGTH 256
static const char prefix[] = "C:\\Windows\\";