diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2024-06-09 20:03:14 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2024-06-09 20:03:14 +0200 |
commit | 3ccc1867c86aa0e21177420bba879495654b1b09 (patch) | |
tree | 4c9ac2f2a4596d53f2f4de55f07df89da7e5280c /src/client.zig | |
parent | f1118e997d1642ca161868ee1bb348cc3ea23d7c (diff) | |
download | SouthRPC-3ccc1867c86aa0e21177420bba879495654b1b09.tar.gz SouthRPC-3ccc1867c86aa0e21177420bba879495654b1b09.zip |
work towards hookszig
Diffstat (limited to 'src/client.zig')
-rw-r--r-- | src/client.zig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client.zig b/src/client.zig new file mode 100644 index 0000000..958e6ef --- /dev/null +++ b/src/client.zig @@ -0,0 +1,12 @@ +const std = @import("std"); +const windows = std.os.windows; + +const interface = @import("interface.zig"); + +pub var handle: ?windows.HMODULE = null; + +pub var create_interface: interface.GetInterfaceType = null; + +pub fn init(module: windows.HMODULE) void { + create_interface = @ptrCast(windows.kernel32.GetProcAddress(module, "CreateInterface")); +} |