OtenMoten Posted October 27, 2017 Share Posted October 27, 2017 (edited) Hello dear community, $calldata=DllCall("Kernel32.dll","int","GetDiskFreeSpaceW","wstr","C:\","dword*",$SectorsP erCluster,"dword*",$BytesPerSector,"dword*",$NumberOfFreeClusters,"dword*",$TotalNumberOfClusters) Would it be correct if I am calling the variables in the DllCall as 'dummys' ? It seems to me to be because you can fill in any variables and that the variables are only needed because the field shouldn't be empty. I altered the DllCall in: $calldata = DllCall("Kernel32.dll","int","GetDiskFreeSpaceW","wstr","C:\","dword*",NULL ,"dword*",NULL,"dword*",NULL,"dword*",NULL) The result in _ArrayDisplay($calldata, "Caption") is the same as the top one. I have some struggle in my mind - this is why I am asking. I am right? Kind regards Edited October 27, 2017 by OtenMoten Link to comment Share on other sites More sharing options...
Danyfirex Posted October 27, 2017 Share Posted October 27, 2017 Null is designed for wstr/str and Objects. I would do it this ways. #include <Array.au3> $calldata = DllCall("Kernel32.dll","int","GetDiskFreeSpaceW","wstr","C:\","dword*",0 ,"dword*",0,"dword*",0,"dword*",0) _ArrayDisplay($calldata) ;you also can do this Local $tCluster=DllStructCreate("dword value") $calldata = DllCall("Kernel32.dll","int","GetDiskFreeSpaceW","wstr","C:\","ptr",DllStructGetPtr($tCluster) ,"dword*",NULL,"dword*",NULL,"dword*",NULL) MsgBox(0,"",$tCluster.value) Saludos Earthshine and OtenMoten 2 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...
Skysnake Posted November 29, 2018 Share Posted November 29, 2018 Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
caramen Posted February 14, 2019 Share Posted February 14, 2019 Thanks for this. My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki 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