Danyfirex Posted January 13, 2016 Share Posted January 13, 2016 @J1 : I'm not clever with Dllcall and variables types, maybe you can confirm that : if I understand the helpfile, BYTE and BOOLEAN are both "an unsigned 8 bit integer", so it should work with both in the DllCall, no ? Yes. JohnOne 1 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
jguinch Posted January 13, 2016 Share Posted January 13, 2016 (edited) Thanks RTFC, I just see that in the helpfile. I have never seen that there is BOOL and BOOLEAN, I thought it was the same thing...Edit : thanks Dany ! Edited January 13, 2016 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
JohnOne Posted January 13, 2016 Share Posted January 13, 2016 what made you look in this version as opposed to just relying on the vb version which is more closely related to autoit.I don't know anything about VB, but I know a little about C/++, plus dllcall is based on C/++ language and its types. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
RTFC Posted January 13, 2016 Share Posted January 13, 2016 Thanks RTFC, I just see that in the helpfile. I have never seen that there is BOOL and BOOLEAN, I thought it was the same thing...You're welcome, jguinch. See here for some background, for example. It's one of those nasty gotchas that trips many people up first time (me included). A dll may return AL (least significant byte of EAX) or the entire 32-bits (in 32-bit architectures). If you're testing for EAX=0 or 1, and the MSB part is non-zero and only the LSB is updated, you're bound to get confusing errors. My Contributions and Wrappers Spoiler BitMaskSudokuSolver BuildPartitionTable CodeCrypter CodeScanner DigitalDisplay Eigen4AutoIt FAT Suite HighMem MetaCodeFileLibrary OSgrid Pool RdRand SecondDesktop SimulatedAnnealing Xbase I/O Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now