1const std = @import("std");
2const windows = std.os.windows;
3
4const DLL_PROCESS_ATTACH = 1;
5
6pub fn DllMain(
7 hinstDLL: windows.HINSTANCE,
8 fdwReason: windows.DWORD,
9 lpReserved: windows.LPVOID,
10) windows.BOOL {
11 _ = hinstDLL;
12 _ = lpReserved;
13 switch (fdwReason) {
14 DLL_PROCESS_ATTACH => std.debug.print("hello from DllMain", .{}),
15 else => {},
16 }
17 return .TRUE;
18}