Rob Spoor wrote:I don't think the issue lies in your dependencies. If it were you'd get compiler errors. I think it's more with how you load the libraries.
All examples I've seen use Kernel32.INSTANCE and User32.INSTANCE. These call Native.load instead of Native.loadLibrary (see Kernel32 and User32). The latter is now deprecated. The calls to load also use some default options.
Shame on me! I should have studied Jeff Heatton's working code more closely and trusted ChatGPT less.
My apologies for being sloppy.
Whoa! This is kinda tedious writing the signature for each function you want to call be fore you call it. Surely, someone else has already done this for Kernel32? Anyone know of where I might find this?