VarSetCapacity & Struct size

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
niczoom
Posts: 78
Joined: 09 Mar 2016, 22:17

Re: VarSetCapacity & Struct size

28 Jun 2019, 08:29

Thanks for the response, that's good to know.
Process32First and Process32Next are some of the rare special cases. The Kernel32.dll exports two function names, one without a suffix for ANSI and one with the suffix W for Unicode.
I suppose this knowledge comes with experience! As you mentioned this is a rare case, it sounds like there are not too many other functions like this. On MSDN is there a way to tell if a particular function works in this way so I can be more prepared?
[AHK] 1.1.23.05 x32 Unicode
[WIN] 10 Pro x64 Version 5111 (Build 10586.218)
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: VarSetCapacity & Struct size

28 Jun 2019, 08:41

yes, use dependencywalker to find out which functions are exported and what theyre called
just me
Posts: 9495
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: VarSetCapacity & Struct size

28 Jun 2019, 09:13

In the good old MSDN functions were listed by their 'base names' and the complete ANSI respectively Unicode names were listed at the bottom of the function's page. Microsoft changed that for unknown reasons.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: VarSetCapacity & Struct size

28 Jun 2019, 12:11

This function by SKAN lists the functions in a dll:
DllListExports() - List of Function exports of a DLL - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=4563

I mention some 'FuncW/Func' pairs that I've come across, here:
jeeswg's DllCall and structs tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=63708
Here are some exceptions e.g. 'FuncW/Func' pairs.
Last edited by jeeswg on 28 Jun 2019, 18:45, edited 1 time in total.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
niczoom
Posts: 78
Joined: 09 Mar 2016, 22:17

Re: VarSetCapacity & Struct size

28 Jun 2019, 18:38

Thanks for the help. The last few comments have explained the A/W business well and I have a much better understanding of how AHK handles it and Ansii/Unicode in general.
[AHK] 1.1.23.05 x32 Unicode
[WIN] 10 Pro x64 Version 5111 (Build 10586.218)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww and 145 guests