diff options
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")); +} |