aboutsummaryrefslogtreecommitdiff
path: root/src/client.zig
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2024-06-09 20:03:14 +0200
committerJan200101 <sentrycraft123@gmail.com>2024-06-09 20:03:14 +0200
commit3ccc1867c86aa0e21177420bba879495654b1b09 (patch)
tree4c9ac2f2a4596d53f2f4de55f07df89da7e5280c /src/client.zig
parentf1118e997d1642ca161868ee1bb348cc3ea23d7c (diff)
downloadSouthRPC-3ccc1867c86aa0e21177420bba879495654b1b09.tar.gz
SouthRPC-3ccc1867c86aa0e21177420bba879495654b1b09.zip
work towards hookszig
Diffstat (limited to 'src/client.zig')
-rw-r--r--src/client.zig12
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"));
+}