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?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.
VarSetCapacity & Struct size
Re: VarSetCapacity & Struct size
Thanks for the response, that's good to know.
[AHK] 1.1.23.05 x32 Unicode
[WIN] 10 Pro x64 Version 5111 (Build 10586.218)
[WIN] 10 Pro x64 Version 5111 (Build 10586.218)
Re: VarSetCapacity & Struct size
yes, use dependencywalker to find out which functions are exported and what theyre called
Re: VarSetCapacity & Struct size
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.
Re: VarSetCapacity & Struct size
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
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
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: VarSetCapacity & Struct size
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)
[WIN] 10 Pro x64 Version 5111 (Build 10586.218)
Who is online
Users browsing this forum: mikeyww and 145 guests