https://www.autohotkey.com/docs/commands/Process.htm wrote:DllCall("LoadLibrary", "Str", "Psapi.dll")
Why does the above work, given the LoadLibrary function returns a HMODULE, and we haven't specified a return type, as per:
https://www.autohotkey.com/docs/commands/DllCall.htm wrote:ReturnType: If the function returns a 32-bit signed integer (Int), BOOL, or nothing at all, ReturnType may be omitted. Otherwise, specify one of the argument types from the types table below.
Windows docs doesn't say much about the format of HMODULE, so I'm not sure what to specify as the return type.
Another example in ahk docs specifies "Ptr" as the return type, but I've seen others use "UPtr".
https://www.autohotkey.com/docs/commands/DllCall.htm wrote:DllCall("LoadLibrary", "Str", "MyFunctions.dll", "Ptr")
I'm running 64-bit Unicode - which return type should I use?