-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathmkmsvc.bat
More file actions
19 lines (12 loc) · 777 Bytes
/
mkmsvc.bat
File metadata and controls
19 lines (12 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
:: simple build file for Visual Studio
:: 1st, set environement example if you want to target ARM64 from an AMD64.
:: call "%PROGRAMFILES%\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=arm64 -host_arch=amd64
rc hooks.rc
rc altsnap.rc
:: you can disable some stuffs in AltSnap if needed...
::@set DEFINES= /D "NO_VISTA" /D "NO_OLEAPI"
cl /c altsnap.c /nologo /Ox /Oi /Os /Gy %DEFINES%
link altsnap.obj altsnap.res /subsystem:windows /entry:unfuckWinMain kernel32.lib user32.lib shell32.lib advapi32.lib gdi32.lib comctl32.lib vcruntime.lib
cl /c hooks.c /nologo /Ox /Oi /Os /Gy /GS- /LD %DEFINES%
link hooks.obj hooks.res /DLL /subsystem:windows /entry:DllMain kernel32.lib user32.lib gdi32.lib vcruntime.lib
::@set DEFINES=